aspose file tools*
The moose likes Other Application Frameworks and the fly likes Modular Java: If you can answer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Modular Java: If you can answer "yes" to these 3 questions, then you should use OSGI" Watch "Modular Java: If you can answer "yes" to these 3 questions, then you should use OSGI" New topic
Author

Modular Java: If you can answer "yes" to these 3 questions, then you should use OSGI

Alexandra Niculai
Greenhorn

Joined: Nov 05, 2008
Posts: 10
I don't know anything more about OSGI than what I read in the Modular Java topics, so I'd like to find out which are these three questions(or less or more questions).
Thank you!

Alexandra N.
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
You can read benefits of using OSGi from http://www.osgi.org/About/WhyOSGi.


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Craig Walls
author
Ranch Hand

Joined: Sep 19, 2003
Posts: 335
    
    5
Alexandra Niculai wrote:I don't know anything more about OSGI than what I read in the Modular Java topics, so I'd like to find out which are these three questions(or less or more questions).


I'm not sure if these could be considered the definitive set of questions or not, but let me give it a shot...

- If you want to develop applications that are assembled from highly-cohesive/loosely-coupled modules, then you should use OSGi.
- If you want to be able to maintain parts of an application without updating other parts (or even restarting the application), then you should use OSGi.
- If you want to build plugin capability into your application, then you should use OSGi.
- If you want to stay out of "Classpath Hell" (multiple dependencies on different versions of the same library), then you should use OSGi.
- If you want to increase productivity through parallel development of application components, then you should use OSGi.
- If you want to develop in a service-oriented architecture, but aren't so sure that SOA really has anything to do with web services, then you should use OSGi.

I may think of some more later, but this is a good start.


Spring in Action - Unleash POJO power in your applications!
Modular Java - Discover the secret weapon to modularity on the Java platform!
XDoclet in Action - Your complete guide to code generation with XDoclet.
Alexandra Niculai
Greenhorn

Joined: Nov 05, 2008
Posts: 10
Thanks a lot! I can answer yes to some of these questions. I need to learn and use OSGI.
And thank you, too, Kengkaj.
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321


Thanks for explanation.. Craig,

does this book cover initial learning of OSGI framework ?
I mean is this book is enough to understand.. OSGI framework.. ?

thanks


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Craig Walls
author
Ranch Hand

Joined: Sep 19, 2003
Posts: 335
    
    5
Muhammad Saifuddin wrote:does this book cover initial learning of OSGI framework ?
I mean is this book is enough to understand.. OSGI framework.. ?


Absolutely! The very first thing we do in the book is startup a couple of OSGi frameworks (Equinox and Felix) and kick the tires. Then we create a dumb simple Hello World bundle that does little more than...well, what do you think Hello World bundles would do? Then we ramp up a bit and create a couple of bundles, one that publishes a service into the OSGi service registry and another that consumes that service.

Up until this point in the book, we've done everything by hand. But before we go any further, I introduce you to Pax Construct...because I can't imagine doing any sizable OSGi project without Pax Construct.

Throughout the rest of the book we build a somewhat realistic OSGi example ("somewhat" meaning that it's big enough to demonstrate much of what you need to know about OSGi, but small enough to fit in the book). We even write some integration tests for those bundles.

At some point we abandon programmatic OSGi and start using Spring-DM to publish and consume services. Then we build a web front end for our application, use fragments to "skin" the app, and then we start packaging up the application to be deployed.

So, yes...we start off with some basic OSGi and quickly ramp up to building a full application.
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Thanks for your reply.. Craig,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Modular Java: If you can answer "yes" to these 3 questions, then you should use OSGI