Hi Minakari,

Sorry for the delay ... I have been busy with other stuff, which
prevented me from taking a stab at this...

Am Samstag, den 02.02.2008, 04:42 -0800 schrieb minakari:
> Hi,
> how can I develop WebApplication,if the logic of my Webapplication
> implemented with OSGI ,what about Interface ,what about tomcat I cant use
> tomcat as bundle like jetty because it is very difficult for us,so what can
> I do?how can I create my interface?

Maybe you want to try and have a look at what we do in Sling [1]: We
have two modi operandi in that we have a standalone launcher
application, which creates the OSGi framework and embeds a bundle
implementing the OSGi HttpService. The second way is a simple web
application which implements a Servlet launching the OSGi framework and
ambedding a bundle implementing the OSGi HttpService as a bridge to the
servlet container we run in. As Sling is built against the OSGi
HttpService, it does not matter how the OSGi framework is launched -
standalone or embedded in a web application.

So what you are probably looking for when requiring to run in Tomcat is
the second way, where you deploy the web application launching the OSGi
framework inside the servlet container.

What you always have to care about is to make sure the servlets you pack
into the OSGi bundles get registered with the HttpService: Either you do
it manually (e.g. in a BundleActivator) or you register the Servlets as
OSGi service and make use of the whiteboard pattern support for Servlets
in either Sling (if using Sling) or the PAX web server support [2].

Hope this helps.

Regards
Felix

[1] http://incubator.apache.org/sling
[2] http://wiki.ops4j.org/confluence/display/ops4j/Pax+Web



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to