You could also look in the old Oscar Bundle Repository:

http://oscar-osgi.sf.net/repo/httptest/httptest-src.jar

There's an old, but still valid "Http Test" bundle we created in the early days of testing out the original Oscar Http service:

http://oscar-osgi.sf.net/repo/httptest/httptest-src.jar

Regards

-- Rob


Alin Dreghiciu wrote:
Hi,

About documents I guess the best one about is to read OSGi compendium
specs. If you do not have them you can download them from OSGi site.
Then you have to have this bundles:
1. servlet api
http://repo1.maven.org/maven2/org/apache/felix/javax.servlet/1.0.0/javax.servlet-1.0.0.jar

2. felix http implementation. This is a link for a snapshot version or
you could build it by yourself and use the local repo one:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/felix/org.apache.felix.http.jetty/0.9.0-SNAPSHOT/org.apache.felix.http.jetty-0.9.0-20070928.203308-3.jar

If you use Pax Runner (http://wiki.ops4j.org/confluence/x/A4A6) then
you could do this:

pax-run \
  --repos=http://people.apache.org/repo/[EMAIL PROTECTED] \
  --vmOptions="-Dorg.osgi.service.http.port=8080" \
  mvn:org.apache.felix/javax.servlet/1.0.0 \
  mvn:org.apache.felix/org.apache.felix.http.jetty/[EMAIL PROTECTED]

Another alternative is to use Pax Web as an HttpService++
(http://wiki.ops4j.org/confluence/x/AYAz) which is very simple to get
started with if you have Pax Runner:

pax-run --profiles=web

That's all :)

If you want an easy way to register your servlets/resources take a
look at Pax Web Extender (http://wiki.ops4j.org/confluence/x/eYA6).

On OPS4J yo can find also examples of how to use an HttpService.

Hope it helps,
Alin

On Thu, Feb 28, 2008 at 11:30 PM, Saminda Abeyruwan <[EMAIL PROTECTED]> wrote:
Hi Devs,

 Please be kind enough to point me to a Felix document on using HttpService
 and HttpContext and the bundles needed to start before starting Jetty bundle
 to get the servlet scenario working.

 Thank you

 Saminda

 --
 Saminda Abeyruwan

 Senior Software Engineer
 WSO2 Inc. - www.wso2.org


--


Ascert - Taking systems to the Edge
[EMAIL PROTECTED]
+44 (0)20 7488 3470
www.ascert.com

Reply via email to