PDA

View Full Version : OSGi web application, is it already possible?


sebastien
Jan 12th, 2008, 11:41 AM
This post is more about Spring Dynamic Modules but as there is no dedicated forum for it, I'm posting here.

I've read a few articles and the whole reference documentation for Spring Dynamic Modules and it's really what I've been looking for for years. Now it's expecially interesting for one of the projets I'm working on and I would like to develop a proof of concept to see how it can work.

Unfortunately, I have trouble filling the gap between Spring Dynamic modules and what I'm trying to achieve because I don't know which platform is best suited for deploying a web application composed of OSGi bundles and exposing some http services. I've looked at Equinox, Knopflerfish, Felix and JOnAS 5 but the documentation is very scarce and I would like to know what is the deployment platform of choice as of today for such an application.

Costin Leau
Apr 20th, 2008, 05:49 AM
Hi Sebastien,

Web applications are possible in Spring-DM in 1.1 (currently in M1). There is already documentation in place: http://static.springframework.org/osgi/docs/current/reference/html/.
Tomcat and Jetty are supported and in the upcoming M2 there is also integration with Spring-MVC.
There are some minimal samples working and once we approach final, more docs and examples will be produced.
In the meantime consider looking at the sources and using this forum for more information.

P.S. I've moved this question to the newly created Spring-DM forum.

Cheers,

adreghiciu
Apr 21st, 2008, 04:19 AM
Unfortunately, I have trouble filling the gap between Spring Dynamic modules and what I'm trying to achieve because I don't know which platform is best suited for deploying a web application composed of OSGi bundles and exposing some http services. I've looked at Equinox, Knopflerfish, Felix and JOnAS 5 but the documentation is very scarce and I would like to know what is the deployment platform of choice as of today for such an application.

Best, I would say, is that you do not develop your application based on a specific framework implementation. And I do not think that there is a deployment platform of choice this days as the web support in osgi (beside Spring DM 1.1) is based on HttpService, so it is up to the HttpService implementation not the framework itself.
You may take a look at Pax Runner (http://wiki.ops4j.org/confluence/x/A4A6) for easy provision of bundles and switch of deployment framework and Pax Web / Pax Web Extender (http://wiki.ops4j.org/confluence/x/AYAz) for an implementation of HttpService and more and it has some examples that may compensate for lack of documentation.

Alin Dreghiciu