Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » Riena with OSGi-Bridge-Servlet?
Riena with OSGi-Bridge-Servlet? [message #8926] Mon, 25 August 2008 15:39 Go to next message
Eclipse UserFriend
Originally posted by: ronde.hitdorf.com

Hi guys,

the last days I was playing around with riena and now I like to deploy a
small sample application into an existing application server (JBoss).

Should I use the OSGi-Bridgeservlet to expose the hessian service? Or is
there any other configuration file? Unfortunately I could not find any
information how to deploy.

Greets

Dominique
Re: Riena with OSGi-Bridge-Servlet? [message #8947 is a reply to message #8926] Wed, 27 August 2008 06:30 Go to previous messageGo to next message
Christian Campo is currently offline Christian CampoFriend
Messages: 590
Registered: July 2009
Senior Member
Hi Dominique,

if you like to deploy it into a regular webcontainer, you need to deploy it using the BridgeServlet.

christian


Rondé, Dominique schrieb:
> Hi guys,
>
> the last days I was playing around with riena and now I like to deploy a
> small sample application into an existing application server (JBoss).
>
> Should I use the OSGi-Bridgeservlet to expose the hessian service? Or is
> there any other configuration file? Unfortunately I could not find any
> information how to deploy.
>
> Greets
>
> Dominique
>
Re: Riena with OSGi-Bridge-Servlet? [message #8967 is a reply to message #8947] Wed, 27 August 2008 06:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ronde.hitdorf.com

Hi Christian,

do you know what servlet dispatch the reqests for riena? If I understand
the documentation of the BridgeServlet right, I have to use the
extension point org.eclipse.equinox.http.registry.servlets

Dominique

Christian Campo schrieb:
> Hi Dominique,
>
> if you like to deploy it into a regular webcontainer, you need to deploy
> it using the BridgeServlet.
>
> christian
>
>
> Rondé, Dominique schrieb:
>> Hi guys,
>>
>> the last days I was playing around with riena and now I like to deploy
>> a small sample application into an existing application server (JBoss).
>>
>> Should I use the OSGi-Bridgeservlet to expose the hessian service? Or
>> is there any other configuration file? Unfortunately I could not find
>> any information how to deploy.
>>
>> Greets
>>
>> Dominique
>>
Re: Riena with OSGi-Bridge-Servlet? [message #8988 is a reply to message #8967] Wed, 27 August 2008 12:26 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 590
Registered: July 2009
Senior Member
Hi Domenique,

if you read the documentation about the BridgeServlet it works like this.

The BridgeServlet "lives" in the Webapp container world. For each and every call it dispatches to the ProxyServlet.
During the call to the ProxyServlet the Thread context classloadeder is switched to become the OSGi Framework
classloader. The ProxyServlet lives within the OSGi/Equinox world. Then the situation is the same as if you were calling
the servlet in an embedded situation when Jetty is running as embedded webserver within the OSGi container.

The ProxyServlet then calls the servlets dependending on the URL that are registered with the extension point that you
named. I can tell you what the servlet is but you dont actually need to worry about that because that extension is
already defined in org.eclipse.riena.publisher.hessian. Its fixed (maybe here is room for improvment) to the relative
URL /hessian/*.

So for running it in an embedded environment that means that the Webservice will be in http://<host>/hessian/<webservice
url> i.e. http://localhost:8080/hessian/PingPongWS.

If you run it as a Webapp like with JBoss or Tomcat then you have to add the webapp name (no code changes are necessary
on the server). The service is then available at http://<host>/hessian/<webserviceurl> i.e.
http://localhost:8080/mywebapp/hessian/PingPongWS.

Clears things up ? if not dont hesitate to ask
christian campo


Rondé , Dominique schrieb:
> Hi Christian,
>
> do you know what servlet dispatch the reqests for riena? If I understand
> the documentation of the BridgeServlet right, I have to use the
> extension point org.eclipse.equinox.http.registry.servlets
>
> Dominique
>
> Christian Campo schrieb:
>> Hi Dominique,
>>
>> if you like to deploy it into a regular webcontainer, you need to
>> deploy it using the BridgeServlet.
>>
>> christian
>>
>>
>> Rondé, Dominique schrieb:
>>> Hi guys,
>>>
>>> the last days I was playing around with riena and now I like to
>>> deploy a small sample application into an existing application server
>>> (JBoss).
>>>
>>> Should I use the OSGi-Bridgeservlet to expose the hessian service? Or
>>> is there any other configuration file? Unfortunately I could not find
>>> any information how to deploy.
>>>
>>> Greets
>>>
>>> Dominique
>>>
Re: Riena with OSGi-Bridge-Servlet? [message #573765 is a reply to message #8926] Wed, 27 August 2008 06:30 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 590
Registered: July 2009
Senior Member
Hi Dominique,

if you like to deploy it into a regular webcontainer, you need to deploy it using the BridgeServlet.

christian


Rondé, Dominique schrieb:
> Hi guys,
>
> the last days I was playing around with riena and now I like to deploy a
> small sample application into an existing application server (JBoss).
>
> Should I use the OSGi-Bridgeservlet to expose the hessian service? Or is
> there any other configuration file? Unfortunately I could not find any
> information how to deploy.
>
> Greets
>
> Dominique
>
Re: Riena with OSGi-Bridge-Servlet? [message #573824 is a reply to message #8947] Wed, 27 August 2008 06:58 Go to previous message
Eclipse UserFriend
Originally posted by: ronde.hitdorf.com

Hi Christian,

do you know what servlet dispatch the reqests for riena? If I understand
the documentation of the BridgeServlet right, I have to use the
extension point org.eclipse.equinox.http.registry.servlets

Dominique

Christian Campo schrieb:
> Hi Dominique,
>
> if you like to deploy it into a regular webcontainer, you need to deploy
> it using the BridgeServlet.
>
> christian
>
>
> Rondé, Dominique schrieb:
>> Hi guys,
>>
>> the last days I was playing around with riena and now I like to deploy
>> a small sample application into an existing application server (JBoss).
>>
>> Should I use the OSGi-Bridgeservlet to expose the hessian service? Or
>> is there any other configuration file? Unfortunately I could not find
>> any information how to deploy.
>>
>> Greets
>>
>> Dominique
>>
Re: Riena with OSGi-Bridge-Servlet? [message #573855 is a reply to message #8967] Wed, 27 August 2008 12:26 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 590
Registered: July 2009
Senior Member
Hi Domenique,

if you read the documentation about the BridgeServlet it works like this.

The BridgeServlet "lives" in the Webapp container world. For each and every call it dispatches to the ProxyServlet.
During the call to the ProxyServlet the Thread context classloadeder is switched to become the OSGi Framework
classloader. The ProxyServlet lives within the OSGi/Equinox world. Then the situation is the same as if you were calling
the servlet in an embedded situation when Jetty is running as embedded webserver within the OSGi container.

The ProxyServlet then calls the servlets dependending on the URL that are registered with the extension point that you
named. I can tell you what the servlet is but you dont actually need to worry about that because that extension is
already defined in org.eclipse.riena.publisher.hessian. Its fixed (maybe here is room for improvment) to the relative
URL /hessian/*.

So for running it in an embedded environment that means that the Webservice will be in http://<host>/hessian/<webservice
url> i.e. http://localhost:8080/hessian/PingPongWS

If you run it as a Webapp like with JBoss or Tomcat then you have to add the webapp name (no code changes are necessary
on the server). The service is then available at http://<host>/hessian/<webserviceurl> i.e.
http://localhost:8080/mywebapp/hessian/PingPongWS

Clears things up ? if not dont hesitate to ask
christian campo


Rondé , Dominique schrieb:
> Hi Christian,
>
> do you know what servlet dispatch the reqests for riena? If I understand
> the documentation of the BridgeServlet right, I have to use the
> extension point org.eclipse.equinox.http.registry.servlets
>
> Dominique
>
> Christian Campo schrieb:
>> Hi Dominique,
>>
>> if you like to deploy it into a regular webcontainer, you need to
>> deploy it using the BridgeServlet.
>>
>> christian
>>
>>
>> Rondé, Dominique schrieb:
>>> Hi guys,
>>>
>>> the last days I was playing around with riena and now I like to
>>> deploy a small sample application into an existing application server
>>> (JBoss).
>>>
>>> Should I use the OSGi-Bridgeservlet to expose the hessian service? Or
>>> is there any other configuration file? Unfortunately I could not find
>>> any information how to deploy.
>>>
>>> Greets
>>>
>>> Dominique
>>>
Previous Topic:Riena with OSGi-Bridge-Servlet?
Next Topic:Eclipse Enters Into The Enterprise Arena
Goto Forum:
  


Current Time: Mon Dec 22 04:24:23 GMT 2014

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

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