Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
This chapter covers
|
So far you’ve learned about and used several independent OSGi services, such as the Configuration Admin in chapter 5, the Event Admin in chapter 6, JPA in chapter 7, JTA in chapter 8, JNDI in chapter 9, remote services in chapter 10, Start-Levels in chapter 11, and finally JMX in chapter 12. The common pattern for using these services is to retrieve them from the OSGi service registry. This is done programmatically and generally leads to a lot of boilerplate code and decreases user productivity. Can we do better?