This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Introducing OSGi on existing framework/enterprise application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Introducing OSGi on existing framework/enterprise application" Watch "Introducing OSGi on existing framework/enterprise application" New topic
Author

Introducing OSGi on existing framework/enterprise application

Sujoy Choudhury
Ranch Hand

Joined: Sep 17, 2008
Posts: 136

Hi,
We have an existing enterprise application which is running on JEE container.

Now to introduce OSGi on top of this for more security/robustness and other goodies from OSGi how much work is needed?
Does this book talk about any case studies? If yes, I would definitely need this book.


Thanks and Regards,
~Sujoy
Alexandre Castro Alves
author
Greenhorn

Joined: Aug 22, 2011
Posts: 7
Hi,

Yes, the book (OSGi in Depth) does talk about how to layer an OSGi framework on top of other frameworks (i.e. containers), such as JEE.

More importantly, it also shows you how to interact with JEE services, such as JNDI, data-source, HTTP request/response stack, etc, through OSGi.

In my mind, the reason for doing this (layering) is two-fold:

1) You will get a better modular application, and therefore more maintainable. For example, you could change parts of an application (i.e. interface) without impacting other pieces (i.e. business).

2) You will be able to support a more dynamic environment. For example, again being able to dynamically change the business part of an application without re-deploying the app.

The amount of work varies. If the application is already modular, than it may be trivial, and consist of writing a BundleActivator, for example. However, keep in mind, that interacting with JEE services through OSGi may need some re-factoring of code.

Thanks
Alex


OSGi in Depth
A World of Events
Sujoy Choudhury
Ranch Hand

Joined: Sep 17, 2008
Posts: 136

Thank you very much Alex.
 
GeeCON Prague 2014
 
subject: Introducing OSGi on existing framework/enterprise application