PDA

View Full Version : Build webapp with SpringDM


mburbidg
Apr 14th, 2008, 11:50 AM
I've been doing Spring MVC development for awhile now and I'm interested in making a webapp more modular using Spring-DM. I am a new comer to both OSGi and Spring-DM. I have read the Spring-DM reference manual a few times and am having a hard time getting my head around it. Here's a few questions I have. Mainly they have to do with the relationship between a servlet container, such as Tomcat or Jetty and the OSGi framework.

Does the OSGi framework (Equinox 3.2.2, Felix 1.0.3, and Knopflerfish 2.0.4) run inside the web container, Tomcat, Jetty?

Does the OSGi framework run in a separate VM?

The documentation says to install spring-osgi-web.jar bundle. How and where am I installing this bundle?

Is there a tutorial on using Spring-DM to build a webapp?

mburbidg
Apr 15th, 2008, 11:41 AM
I'm puzzled as to why there have been no responses to my question. Are these inappropriate questions? Am I posting to the wrong list? Is anyone using Spring-DM?

dbrosius
Apr 16th, 2008, 06:08 PM
http://maven.springframework.org/milestone/org/springframework/osgi/spring-osgi-web/1.1.0-m1/spring-osgi-web-1.1.0-m1.jar

Costin Leau
Apr 20th, 2008, 05:31 AM
Hey - I just moved this question on the newly created Spring-DM forum.
Previously there wasn't a forum and that's why nobody replied quicker to your question.
See the Spring-DM 1.1 (currently M1) documentation: http://static.springframework.org/osgi/docs/current/reference/html/
It should answer several questions about the deployment model and how spring-dm works.
Let me know if that helps you.

Cheers,

adreghiciu
Apr 21st, 2008, 04:43 AM
Does the OSGi framework (Equinox 3.2.2, Felix 1.0.3, and Knopflerfish 2.0.4) run inside the web container, Tomcat, Jetty?


No.


Does the OSGi framework run in a separate VM?


No.


The documentation says to install spring-osgi-web.jar bundle. How and where am I installing this bundle?


Every osgi framework implementation has a specific way of installing and starting bundles and you can find that on their sites. You can also start up the framework without any bundles installed and use the OSGi console to install and start bundles. However, every osgi framework implementation has a specific way of achieving this task so I suggest that you use Pax Runner (http://wiki.ops4j.org/confluence/x/A4A6) that will abstract from you specific framework configuration and it will make the task of installing/starting bundles trivial. Pax Runner has also specific support for Spring DM (http://wiki.ops4j.org/confluence/x/gQNN).

Alin Dreghiciu