mburbidg
May 15th, 2008, 01:28 PM
I'm new to OSGi, but have been doing Tomcat/Servlet based web development for awhile. Most of that development has been done using Spring-MVC.
I'm very anxious to start using Spring-DM to modularize and make extensible the web application that I'm currently working on.
No matter how many times I read the documentation or the small number of blogs on Spring-DM, I cannot get my head around how to get started. I'd like just to build a "hello-world" web application that runs in Tomcat and has two OSGi modules.
I have this notion that I should be able to take the standard Tomcat distribution, build two OSGi based WARs, the modules of my application, and then deploy them to Tomcat, startup Tomcat and like magic my web application is up and running.
The documentation says the following.
"To use Spring-DM Web, install:
● spring-osgi-web.jar - Spring-DM web support
● spring-osgi-web-extender.jar - Spring-DM web extender
bundles to detect started OSGi WAR bundles and to deploy them to one of the supported
web containers. By default, Tomcat will be used but this can be changed to Jetty or to another
custom server."
What does this mean? Does this mean deploy these two jars to the Tomcat webapps directory? Or does this mean install these in an OSGi container. If the latter, how does Tomcat get started?
It would be really nice to have a step-by-step tutorial that describes how to get a "hello world" Spring-DM based web application running. I'd be happy to make mine available if I can get some help getting it going.
Thanks,
Michael-
I'm very anxious to start using Spring-DM to modularize and make extensible the web application that I'm currently working on.
No matter how many times I read the documentation or the small number of blogs on Spring-DM, I cannot get my head around how to get started. I'd like just to build a "hello-world" web application that runs in Tomcat and has two OSGi modules.
I have this notion that I should be able to take the standard Tomcat distribution, build two OSGi based WARs, the modules of my application, and then deploy them to Tomcat, startup Tomcat and like magic my web application is up and running.
The documentation says the following.
"To use Spring-DM Web, install:
● spring-osgi-web.jar - Spring-DM web support
● spring-osgi-web-extender.jar - Spring-DM web extender
bundles to detect started OSGi WAR bundles and to deploy them to one of the supported
web containers. By default, Tomcat will be used but this can be changed to Jetty or to another
custom server."
What does this mean? Does this mean deploy these two jars to the Tomcat webapps directory? Or does this mean install these in an OSGi container. If the latter, how does Tomcat get started?
It would be really nice to have a step-by-step tutorial that describes how to get a "hello world" Spring-DM based web application running. I'd be happy to make mine available if I can get some help getting it going.
Thanks,
Michael-