Hello Kailash

While it's difficult to give concrete advice over email, I would recommend 
that you start small and learn a little more about what OSGi is and the 
benefits that you can expect to gain from using it.  I would like to 
recommend the book "OSGi and Equinox: Creating Highly Modular Java 
Systems" (see http://equinoxosgi.org). The book is a great introduction to 
OSGi and talks about taking regular Java code and moving it to OSGi and 
the OSGi services programming model.

Regarding Jetty, yes you can certainly use Jetty with OSGi, as you can 
with Tomcat and other larger enterprise servers.

Goods luck,

Simon



From:
Kailash Kothari <[email protected]>
To:
[email protected]
Date:
09/23/2010 05:07 PM
Subject:
[osgi-dev] Question about converting legacy app to OSGi model
Sent by:
[email protected]



Hi,

I'm an newbie to the OSGi specification, and as much as the concept 
itself is appealing, Im a little unclear on how a legacy application can 
be migrated over so as to provide services via bundles.

Lets say I have an enterprise application server with 4-5 different 
webapps each having its own context and custom startup servlets.

How do I go about the migration process? Should i let the webapp 
definitions be the way they are and make the startup servlets bundles 
which are started independently using a custom script after the app 
server is up?

With regard to Struts - is a bundle a combination of Action and Model 
classes? Or is each action class supposed to be a bundle that talks to 
the Model class which is its own bundle?

The examples are great, but I'm having trouble visualizing how a full 
scale legacy enterprise app would look in the OSGi model. Any case 
studies would be great.

One last point, would OSGi implementations work on light weight 
containers like Jetty?

Thanks in advance!
Kailash.
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev


_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to