You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by jcamus <jc...@parkeon.com> on 2009/03/30 16:56:23 UTC
Jetty inside ServiceMix : how to use it ?
Hi!
How can I use jetty inside serviceMix? Can I use jetty as a servlet server
inside servicemix 3.3?
Can I use the servicemix-http (which is unfortunately very complex to use
and not documented) to
implement servlet servers ?
Regards
--
View this message in context: http://www.nabble.com/Jetty-inside-ServiceMix-%3A-how-to-use-it---tp22785117p22785117.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Jetty inside ServiceMix : how to use it ?
Posted by jcamus <jc...@parkeon.com>.
Great ! This quick answer helps a lot! Thanks!
Jean-Baptiste Onofré wrote:
>
> Hi,
>
> As ServiceMix is a pure Spring application, you can define a bean that
> use Jetty and define it in the servicemix.xml.
> Another way to implement that is to create this bean and deploy using
> servicemix-bean service engine.
>
> The bean contains code like :
>
> Server server = new Server(8080);
> Context root = new Context(server, "/", Context.SESSIONS);
> root.addServlet(new ServletHolder(new MyServlet("foobar")), "/");
> server.start();
>
> You can't use the servicemix-http binding component directly to deploy
> servlet (in fact you can, but it's tricky).
>
> Regards
> JB
>
> jcamus wrote:
>> Hi!
>> How can I use jetty inside serviceMix? Can I use jetty as a servlet
>> server
>> inside servicemix 3.3?
>> Can I use the servicemix-http (which is unfortunately very complex to use
>> and not documented) to
>> implement servlet servers ?
>>
>> Regards
>>
>
>
--
View this message in context: http://www.nabble.com/Jetty-inside-ServiceMix-%3A-how-to-use-it---tp22785117p22786921.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Jetty inside ServiceMix : how to use it ?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
As ServiceMix is a pure Spring application, you can define a bean that
use Jetty and define it in the servicemix.xml.
Another way to implement that is to create this bean and deploy using
servicemix-bean service engine.
The bean contains code like :
Server server = new Server(8080);
Context root = new Context(server, "/", Context.SESSIONS);
root.addServlet(new ServletHolder(new MyServlet("foobar")), "/");
server.start();
You can't use the servicemix-http binding component directly to deploy
servlet (in fact you can, but it's tricky).
Regards
JB
jcamus wrote:
> Hi!
> How can I use jetty inside serviceMix? Can I use jetty as a servlet server
> inside servicemix 3.3?
> Can I use the servicemix-http (which is unfortunately very complex to use
> and not documented) to
> implement servlet servers ?
>
> Regards
>