Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
author
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
shekar nadar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh i'm so sorry.
 
She'll be back. I'm just gonna wait here. With this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!