Chapter 12. Managing with JMX

 

This chapter covers

  • Using the Java Management Extension (JMX) API
  • Remotely connecting to JMX agents
  • Retrieving and changing the state of the OSGi framework while in production
  • Managing OSGi services

When you’re developing, you can manage the OSGi framework and its bundles and services by using the shell, as we’ve done in the previous chapters, or by installing custom management agent bundles. But this isn’t the case when you’re in production. In production, it’s unlikely that you or the IT person has direct access to the OSGi framework. For example, it would be improbable that you’d be able to log in or telnet into the machine that’s hosting the running OSGi framework instance. Among other reasons, this is a matter of security; the IT personnel wouldn’t want you to inadvertently take up the CPU resources of a server by logging into it. This is magnified by the fact that increasingly these machines are being hosted in the cloud, that is, in some form of application grid.

12.1. Java’s management API

12.2. Managing bundles

12.3. Managing services

12.4. Managing import and export packages

12.5. Managing an OSGi framework instance

12.6. Management notifications

12.7. Managing bundle configuration

12.8. OSGi JMX patterns

12.9. Summary