Riena with OSGi-Bridge-Servlet? [message #8926] |
Mon, 25 August 2008 11:39  |
Eclipse User |
|
|
|
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 #8988 is a reply to message #8967] |
Wed, 27 August 2008 08:26  |
Eclipse User |
|
|
|
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 02:30  |
Eclipse User |
|
|
|
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 02:58  |
Eclipse User |
|
|
|
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 08:26  |
Eclipse User |
|
|
|
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
>>>
|
|
|
Powered by
FUDForum. Page generated in 0.03742 seconds