Sven has posted 1 posts at DZone. You can read more from them at their website. View Full User Profile

Book Review: Modular Java

10.27.2009
| 6642 views |
  • submit to reddit
Published by: The Pragmatic Bookshelf
ISBN: 1934356409

Reviewer Ratings

Relevance:
4

Readability:
4

Overall:
4

Buy it now

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.

Review

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.
Published at DZone with permission of its author, Sven Reimers.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Developer Dude replied on Tue, 2009/10/27 - 12:53pm

Nice to know, but there are only about two or maybe three sentences that actually review the book. The rest is just an overview/summary.

Where does the book work well? Where does it fall flat on its face? That kind of stuff.

Gilbert Herschberger replied on Thu, 2009/10/29 - 1:12pm

Yes, but... Your book review should answer one question: Is it a good book? And I was so looking forward to your opinion, too. I thought it would come after a dry technical description of the contents. Did I miss it?

A book is a good book for a specific audience. Did you enjoy reading it? What questions did it answer? What questions did you expect it to answer and it did not? I am still not sure which book I should read. Thanks,

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.