Question

I'm trying to check out osgi on web applications. I googled and found out the best way to go would be using spring osgi and virgo. I can't find an easy to setup sample project. Can anyone help me?

update- I should have mentioned that I have a little experience in OSGi(Equinox). And I checked some OSGi frameworks such as Apache Felix, Eclipse Equinox(with the tomcat bundle),... But I want to have my first experiment with Virgo.

Was it helpful?

Solution

I'd recommend taking a look at the Virgo Snaps project, using the 3.0.2.RELEASE of Virgo. It takes a little bit extra time to configure Snaps (adding it to Virgo, and editing the org.eclipse.virgo.kernel.userregion.properties file, as mentioned in the docs). But then you have a simple yet modular web application running with a single spring controller.

There's also the Greenpages example that shows how to build a fully working, yet more complex webapp connected to a database. But I think taking a look at the snaps example (not concentrating too much on the Snaps internals) is a good way to start.

Good luck! :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top