On Wed, Aug 12, 2009 at 7:01 PM, janylj<[email protected]> wrote:
>
> Thanks a lot, Willem. It works using inOnly()
>
> willem.jiang wrote:
>>
>> from("jetty ....").process(...).inOnly().to("jms:queue")
>>
>
> How to make it send a HttpResponse only if sending JMS message is
> successfully. I tried to list the same jetty endpoint in the end, but it
> doesn't work. Please advise. Thanks again.
>
> from("jetty ....").process(...).to("jms:queue").to("jetty....")
>

jetty is only used as a consumer, eg you can only use it in the from node.
So when you want to call some external HTTP service use the http
component instead

from(jetty).to(http)  = OK

from(jetty).to(jetty) = NO OK


> --
> View this message in context: 
> http://www.nabble.com/What-to-do-with-HTTP-response-when-route-from-HTTP-to-JMS--tp24924548p24940755.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to