Chapter 2. Developing a simple OSGi-based web application

This chapter covers

  • Setting up an enterprise OSGi container
  • Developing a simple OSGi-based web application
  • Wiring components together with Blueprint
  • Using JNDI to integrate enterprise OSGi and Java EE code

The web is one of the most fundamental parts of enterprise Java programming, providing a frontend for almost every enterprise application. At the end of the chapter 1, we mentioned that a trivial Hello World application didn’t make much sense when we were talking about enterprise OSGi, because enterprise applications are by definition nontrivial. But that doesn’t mean that writing them has to be complicated or difficult! In this chapter, we’ll get you going with a simple web ...

Get Enterprise OSGi In Action 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.