Chapter 5. Configuring OSGi applications

 

This chapter covers
  • The reasons for configuration
  • The advantages of handling configuration through the Configuration Admin service
  • Validation of configuration data
  • Transaction-ability of configuration changes

 

As you’ll see, most applications need some form of configuration. This configuration includes not only IT-related configuration, such as server names and TCP/IP ports, but also business-related configuration, such as custom or localized labels.

The OSGi platform provides several services, including the Configuration Admin service, the OSGi Log service, and the OSGi Metatype service, that collectively can be used as a configuration framework for OSGi applications.

In this chapter, we’ll ...

Get OSGi in Depth now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.