You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by cml81 <cl...@hotmail.com> on 2012/11/04 18:57:09 UTC

Re: servlet bridge problem

Hi , i'm new at OSGi ... i'm working with gemini blueprint and felix and i
have no clue about how to expose my "internal" servlet ( i mean , servlet
inside a bundle ) , i have the http bride with the proxy servlet catching
everything at /* but no idea how to preceed next ... any help?



--
View this message in context: http://apache-felix.18485.n6.nabble.com/servlet-bridge-problem-tp4836545p5000254.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: servlet bridge problem

Posted by Felix Meschberger <fm...@adobe.com>.
Hi,

Am 04.11.2012 um 18:57 schrieb cml81:

> Hi , i'm new at OSGi ... i'm working with gemini blueprint and felix and i
> have no clue about how to expose my "internal" servlet ( i mean , servlet
> inside a bundle ) , i have the http bride with the proxy servlet catching
> everything at /* but no idea how to preceed next ... any help?

I am not exactly sure, what your setup is.

Do you run a standaline Java application launching your framework ? In this case you would not use the Http Bridge but the Http Service Bundle, which embeds the Jetty servlet container.

If you run your framework as part of a web application deployed inside a servlet container, you need the Http Service Bridge. But then you have to setup your web application such that the bridge is connected to the servlet container. 

Once you have the correct setup, you need to grab the Http Service and register the servlets. See the Http Service spec. for details.

Regards
Felix

> 
> 
> 
> --
> View this message in context: http://apache-felix.18485.n6.nabble.com/servlet-bridge-problem-tp4836545p5000254.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: servlet bridge problem

Posted by Chetan Mehrotra <ch...@gmail.com>.
You can deploy the Felix Whiteboard bundle
(org.apache.felix:org.apache.felix.http.whiteboard:2.0.4) and then
expose the servlet as bp service

<service ref="fooServlet" interface="javax.servlet.Servlet">
         <service-properties>
            <entry key="alias" value="/foo"/>
        </service-properties>
</service>

This servlet would then be accessible at <contextRoot>/foo

Chetan Mehrotra
[1] http://felix.apache.org/site/apache-felix-http-service.html#ApacheFelixHTTPService-UsingtheWhiteboard


On Sun, Nov 4, 2012 at 11:27 PM, cml81 <cl...@hotmail.com> wrote:
> Hi , i'm new at OSGi ... i'm working with gemini blueprint and felix and i
> have no clue about how to expose my "internal" servlet ( i mean , servlet
> inside a bundle ) , i have the http bride with the proxy servlet catching
> everything at /* but no idea how to preceed next ... any help?
>
>
>
> --
> View this message in context: http://apache-felix.18485.n6.nabble.com/servlet-bridge-problem-tp4836545p5000254.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org