mvn install
from root - then cd web-app
and then mvn jetty:run
The Felix ProxyServlet
is mapped to /osgi
.
Two servlets are registered with the HttpService
, one to /s1
and one to /osgi/s2
.
> curl http://localhost:8080/osgi/s1
< 200 OK
< "Hello from bundle servlet, registered @ /s1"
> curl http://localhost:8080/osgi/s2
< 404 Not Found
> curl http://localhost:8080/osgi/s2
< 200 OK
< "Hello from bundle servlet, registered @ /osgi/s2"