I had experience using simple http service implementation of equinox, however I want to play with Jetty this time.
Following the guide of Equinox server, I can't running a Jetty server with my servlet in Eclipse Indigo. Obviously the guide is out of date.
After tuning it, I found below bundles are minimum collection to run Jetty inside OSGi runtime.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javax.servlet | |
javax.transaction | |
org.eclipse.equinox.http.jetty | |
org.eclipse.equinox.http.servlet | |
org.eclipse.osgi.services | |
org.eclipse.osgi | |
org.mortbay.jetty.server | |
org.mortbay.jetty.util |
You only need create a run configuration of OSGi framework, add your bundles with servlets and above bundles.
No comments:
Post a Comment