Embedding an HTTP server in Equinox

Overview

Equinox provides two complete implementations of the OSGi Http Service suitable for embedding.

Bundles

The following bundles are involved in putting together an Http Service environment:

OR

The org.eclipse.equinox.* projects can be retrieved from the equinox CVS depot.
(e.g. cvsroot/eclipse/org.eclipse.equinox.http)

The 3rd party bundles can be retrieved from the Orbit CVS Depott.
(e.g. cvsroot/tools/org.eclipse.orbit/javax.servlet [branch v2_4])]

[Suggested] If you're using Eclipse it might be far simpler to "import" a team project set with everything needed.
Equinox Http Service: (regular) or (proxied)
Jetty-based Http Service: (regular) or (proxied)

Additional Notes:

Writing the server application

See the Writing a bundle-based server application for information on how to write a bundle based web application.

Running the server

To run the server and your application, carry out the following steps:

 

Server links