One Minute Bottom Line
|Are you looking for a fun-to-read introduction to OSGi? Do you want to know what all the fuss about Spring is all about - well this book is just what you need. In a unique and fun approach, Craig manages to describe some of the more complex topics, that even give experienced developers a headache. There may be other books about OSGi and Spring out there, but this would be the book I would recommend you start out with.
Chapter 1, Introduction
, gives a short introduction into modularity, OSGi and the necessary key elements. This is done on a very simple level so that no previous knowledge for OSGi is needed.
Chapter 2, Getting Started
, covers all the basic information around how OSGi works, such as introducing the container concept and how to use a OSGi console showcased with Equinox and Felix. Following the tradition of "Hello World" examples, a "Hello World" OSGi based application is developed step by step.
Chapter 3, Dude, Where's My Jar
, prepares the stage for all the following chapters. In introduces the application that will be developed in the following chapters and shows how to use tools (PAX) to simplify the process for creating and maintaining an OSGi based application.
Chapter 4, Working with Bundles
, introduces OSGi bundles as the method for modularization in OSGi applications. It describes in depth how to usethird-party jar files with bundles, the bundle lifecycle, deployment and dependencies between bundles.
Chapter 5, OSGi Services
, describes the other key concept of OSGi - services. Using a step by step approach the reader is shown how to create a service and make use of it. In addition to this, the standardized services. e.g. logging service, are described as well as the interaction between services.
Chapter 6, Spring and OSGi
, shows in depth how to avoid complex dependencies to OSGi API's and instead of those use dependency injection and declarative features from Spring. This includes a very light introduction into Spring itself.
Chpater 7, Creating Web Bundles
, takes the reader on a short journey how OSGi creates a webserver (using HTTP service) and the evaluates the different implementations available (Jetty, Tomcat)
Chapter 8, Extending Bundles
, show how to extend OSGi bundles on a very low but nevertheless very powerful level - called fragments (not yet supported in all OSGi container implementations).
Chapter 9, OSGi in Production,
tackles the problem how to deploy your application in a production environment. This is ends in a description mix of Maven, PAX and OSGi and how to build and distribute and application.
Chapter 10, Configuring the Application
, show how to use standard OSGi services to enrich your application. As an example the configuration service is shown in detail.
The appendencies give a rough overview for the basic reference material for OSGI Manifest, Spring configuration and OSGi Blueprint Services.