Chapter 9. Blending OSGi and Java EE using JNDI
This chapter covers
- Sharing resources between Java EE and Java SE applications and OSGi bundles
- Exploring what JNDI is and how it’s used
- Retrieving a JNDI object in an OSGi environment
- Performing object conversions
- Registering JNDI providers in an OSGi environment
- Embedding the OSGi framework on top of Java EE and Java SE applications
The OSGi technology and other Java platforms, such as Java EE, can commingle. You don’t need to necessarily choose a single technology and stick to it. This is important, because it’s unlikely that you’ll be able to commit to a single technology anyway—there’s always going to be the question of integrating and supporting legacy applications. This chapter describes mechanisms that allow for integration between OSGi and legacy Java EE and Java SE applications.