|
Re: Jetty hosted in Equinox: can Jetty code access Equionox hosted bundles? [message #765112 is a reply to message #760444] |
Tue, 13 December 2011 12:47 |
Ivan Larionov Messages: 37 Registered: July 2009 |
Member |
|
|
Hi,
There are several ways to run web apps in Jetty and OSGi.
You can deploy you web app as a bundle which presents itself as a web
app: http://wiki.eclipse.org/Jetty/Feature/Jetty_OSGi#Support_for_RFC66.
Jetty comes as a set of bundles running in OSGi, moreover, Server
instances are registered in the service registry. So, the following way
is suitable if you would like to use Jetty-specific web app
implementation:
http://wiki.eclipse.org/Jetty/Feature/Jetty_OSGi#The_OSGi_service_.27org.eclipse.jetty.server.handler.ContextHandler.27
You might also like using OSGi's HttpService.
I hope it will help.
On 02.12.2011 13:47, Seref Arikan wrote:
> Greetings, If I host jetty in Equinox, I'll probably be able to deploy
> my existing web app into it. The question is, can code of this app
> access bundles hosted in Equinox, next to jetty?
> [ [Jetty hosted code] --> [Bundle A hosted in Equinox] ]----both jetty
> and bundles hosted in Equinox
>
> I have to confess that this makes me confused a little bit. How do I
> consume bundle code from a non osgi code (running in Jetty)?.
> I may be missing the point of running Jetty in Equinox unless this is
> possible. What would I gain if I can run a web application in Equinox,
> but not be able to use bundle code from that web application? I can't
> see any document that explains the benefits of this.
|
|
|
Powered by
FUDForum. Page generated in 0.03988 seconds