Hi Vinicius,

Vinicius Carvalho schrieb:
> Hello there! I'm reading the webconsole docs, but I really did not get how
> to get it working. I'm lauching felix inside a container. I've checked
> Sling, and eclipse equinox-server site, but one thing that I can't figure is
> what is needed to get the webconsole running?
> 
> Just putting the equinox httpservice there won't work. From the examples
> I've seen it seems that I need to register the servlets, but for web console
> which one?
> 
> Could someone help me on this?

The WebConsole registers itself with the OSGi HttpService. That is, to
get to the WebConsole, an instance of the OSGi HttpService must be
registered.

For this to be the case, there are mulitple options. In you case of
running the framework inside a servlet conatainer, you might want to use
a Http Service bridge, which is a small piece of code which bridges to
the Servlet Container.

So the servlet which launches the framework also has to start the Http
Service bridge (as part of a BundleActivator given to the framework on
startup similar to what Sling does in the SlingServlet). This registers
the HttpService in the framework. The next step is, that the servlet has
to forward requests to the Http Service bridge (see the
SlingServlet.service method).

The Equinox HttpService bridge is actually "Http Services Servlet". This
must be included in the web application outside of the framework.

Hope this helps.

Regards
Felix

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to