With any JMS system if you send a message using request-reply the broker
will utilize one of many options for replying to you. Either a temporary
queue just for you or a community topic by which you can use your
correlation ID to pluck out the reply. There are other options as well.

>From the point of view of camel, send an exchange to the ActiveMQ component
with the exchange pattern of InOut and it will manage the details for you.
i.e.

from("activemq:queue:inbox).to(ExchangePattern.InOut,
"activemq:queue:destination).log("Reply is: ${body}");

This will send the message, wait for another route to pick up and process
the message and send the reply from the other route back so it can be
logged.

*Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
*Author of: Hardcore Java (2003) and Maintainable Java (2012)*
*LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
<http://www.linkedin.com/pub/robert-simmons/40/852/a39>*


On Thu, Feb 13, 2014 at 8:59 AM, bergun <barisergu...@gmail.com> wrote:

> "If using AMQ you can enable sync sending," I am trying to work out how
> this
> can be done from Jms Options. I tried to grep with sycnhronous keyword but
> couldnt find it really. Appreciate if you can tell how this can be
> achieved.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/errorHandler-for-activemq-component-example-configuration-tp5013373p5747262.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to