aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Basic architecture of Web Application using Spring Dynamic Modules and OSGI  (Equinox Implementatio) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Basic architecture of Web Application using Spring Dynamic Modules and OSGI  (Equinox Implementatio)" Watch "Basic architecture of Web Application using Spring Dynamic Modules and OSGI  (Equinox Implementatio)" New topic
Author

Basic architecture of Web Application using Spring Dynamic Modules and OSGI (Equinox Implementatio)

shekar nadar
Greenhorn

Joined: Mar 31, 2008
Posts: 6
Hi,

I am creating a modular web application using Spring Dynamic Modules and OSGI.

And using equinox for the osgi implementation

I have created a sample application following the explanation in a book.

Now what I want to do is

I want to create different bundles according to each module.

How can i achieve this ?

Like suppose my application has two modules one is the login module and second is the User module.

How should the bundles be created than ?

My login module may have some jsp pages,a application context, a dispatcher servlet, controllers and some business classes.

Similarly my User module may have some jsp pages,a application context, a dispatcher servlet, controllers and some business classes.

And i guess i would have only one web.xml file for the whole application

How can i make the dispatcher servlet of the bundles available in the web.xml file?

shekar
Jeff McAffer
author
Greenhorn

Joined: Apr 13, 2010
Posts: 15
Not sure the exact question here but do suggest that you look at Chapter 19 for details on how to setup OSGi to run in a WAR. Using this approach you do not craft web.xml files but rather run OSGi inside a WAR and then contribute servlets and JSPs via bundles and services.

If you are looking for a more classical WAR deployment approach but with using OSGi, then take a look at OSGi RFC66 (web container) and some of the things coming out of the Jetty project at Eclipse.


http://equinoxosgi.org
shekar nadar
Greenhorn

Joined: Mar 31, 2008
Posts: 6
Where can i find the resource to read chapter 19

" If you are looking for a more classical WAR deployment approach but with using OSGi, then take a look at OSGi RFC66 (web container) and some of the things coming out of the Jetty project at Eclipse. "


Where can i find the material to read more about this and which method would be more effective?

Also if i am making a web application modular.

what are the basic things using which i can achieve modularity in Web Application?

Any lights on this would be great :-)
Jeff McAffer
author
Greenhorn

Joined: Apr 13, 2010
Posts: 15
Chapter 19 is in the OSGi and Equinox book. See http://equinoxosgi.org.

The OSGi specs are available from http://www.osgi.org/Specifications/HomePage. you are likely looking for the Enterprise specifications.
shekar nadar
Greenhorn

Joined: Mar 31, 2008
Posts: 6
Thank you.

It looks like can i can do something

But i was only able to preview the book could not get the complete chapter at http://my.safaribooksonline.com/9780321561510



Can i find the free e- book any where as it is asking me to pay for the subscription.

Jeff McAffer
author
Greenhorn

Joined: Apr 13, 2010
Posts: 15
This is a copyrighted commercial book published by Addison Wesley and available in standard bookstores.

Please let us know if you can find a free e-book. It means that someone is pirating our hard work...
shekar nadar
Greenhorn

Joined: Mar 31, 2008
Posts: 6
Oh i'm so sorry.
 
wood burning stoves
 
subject: Basic architecture of Web Application using Spring Dynamic Modules and OSGI (Equinox Implementatio)