Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Jetty hosted in Equinox: can Jetty code access Equionox hosted bundles?(Code in Jetty and bundle in Equinox: can they talk?)
Jetty hosted in Equinox: can Jetty code access Equionox hosted bundles? [message #760444] Fri, 02 December 2011 11:47 Go to next message
Seref Arikan is currently offline Seref Arikan
Messages: 61
Registered: August 2010
Member
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.
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 Go to previous message
Ivan Larionov is currently offline 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.
Previous Topic:Method not accessible
Next Topic:How to install framework extension?
Goto Forum:
  


Current Time: Tue Sep 30 15:54:05 GMT 2014

Powered by FUDForum. Page generated in 0.03296 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software