BTW the camel-http library has a Camel servlet that can be used for
routing servlet invocations into Camel...
http://activemq.apache.org/camel/http.html

as does the Jetty component
http://activemq.apache.org/camel/jetty.html


2008/10/21 Claus Ibsen <[EMAIL PROTECTED]>:
> Hi
>
> Yeah to my knowledge this is not support in Camel. We discussed this on the 
> chat the other day. Please feel free to raise it in our bug tracker (JIRA).
>
> If you create your own servlets then of course you can identify it and thus 
> should know what [MY CONSUMER ENDPOINT] it is from. You can get the http 
> request and thus also the requested path/context/query string, etc.
>
>
>
> Med venlig hilsen
>
> Claus Ibsen
> ......................................
> Silverbullet
> Skovsgårdsvænget 21
> 8362 Hørning
> Tlf. +45 2962 7576
> Web: www.silverbullet.dk
>
> -----Original Message-----
> From: GLD [mailto:[EMAIL PROTECTED]
> Sent: 21. oktober 2008 10:30
> To: [email protected]
> Subject: CAMEL Servlet Endpoint
>
>
> Hi all,
>
> I want to embed Camel in a WebApp.  The web app will be hosted in an
> application server like JONAS (/tomcat or JETTY) or Weblogic.
>
> I want to create a route like this
>  <from   [MY CONSUMER ENDPOINT]  />
>  <process ref="myProcessor" />
>  <to [MY PRODUCER ENDPOINT] />
>
> As camel is embedded in a webapp, I want to use the web container of the
> application server to listen to http request ( I.E, I want to configure a
> servlet to listen httpRequests and send back httpResponses).
>
> Reading the doc, I didn't find the way to do this.
> In examples, consumers are jetty or CXF but It seems they re create another
> http listener and I don't want it.
>
> I looked at the Axis example, It uses a ProducerTemplate
> It is interesting but I don't know if I can use this kind of Producer
> template to identify the [from] endpoint of a route.
>
> The Second part of the question is how do I create a route for the response
> received from my [MY PRODUCER ENDPOINT]
>
> Regards, guillaume
>
> --
> View this message in context: 
> http://www.nabble.com/CAMEL-Servlet-Endpoint-tp20085692s22882p20085692.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Reply via email to