Chapter 10. Managing applications
This chapter covers
- Discovering and deploying bundles using the OSGi Bundle Repository
- Deploying applications using Deployment Admin
- Controlling bundle activation order using start levels
In the last chapter, we focused on issues relating to the management of individual bundles, such as how to version them, manage their configuration data, and control their activation policies. Now, we’ll move beyond managing individual bundles to issues related to managing OSGi-based applications composed of many bundles. As we’ve mentioned previously, in OSGi-based applications the deployed set of bundles is your application’s configuration. This is a powerful aspect of the OSGi approach, so understanding this point and knowing how to manage sets of bundles is important to be able to fully take advantage of OSGi technology.
In this chapter, we’ll explore a couple of different aspects of application management:
- Deploying applications using the OSGi Bundle Repository or Deployment-Admin
- Controlling bundle activation order using the StartLevel service