Hi

Its A -> B (and when B is complete) the control goes back to A, and
when A is complete, that "message" is sent back as reply to over JMS.

So after calling B and if you need to do more work before you can
reply over JMS, then just add further route processing steps.

On Wed, Jul 16, 2014 at 7:26 PM, RMA <[email protected]> wrote:
> Hi all,
>
> I'm bit lost with a given task that I've been given as I'm a still a newbie
> regarding Apache Camel. I'll provide a brief overview of the scenario and
> the problem.
>
> I have a Camel Route that has two endpoints. The first one receives messages
> from a JMS queue, umarshalls the message, sends the content to the second
> endpoint (using the "Direct" component) and marshalls the reply sent from
> that second endpoint.
>
> The second endpoint receives from the aforementioned "Direct" endpoint and
> implements some business logic.
>
> What I was trying to achieve was to receive the message back into the "first
> endpoint" so that it could reply back to the JMS client, since I've
> explicitly chosen the "InOut" Message Exchange option.
>
> Nevertheless what is happening is that (at least this is my suspicion) the
> second endpoint is replying to the JMS client, which means that the
> marshalling step (that is in the first endpoint) is skipped. As so the JMS
> client is receiving a byte array instead of an XML message.
>
> I've read the  JMS component <http://camel.apache.org/jms>   documentation
> and I've seen the option "disableReplyTo", which seemed to be just what I
> needed. Nevertheless, as my second endpoint uses the Direct component I
> wasn't able to this option.
>
> My question is: without changing the design (which means, having these two
> endpoints as they are and using the Direct component on the second one) am I
> able to accomplish what I intended? In other words, with this design am I
> able to explicitly send the JMS reply from the first endpoint and not from
> the second?
>
> Thank you very much for your help.
>
> Kind regards,
> RMA
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Bridging-from-JMS-to-DIRECT-without-sending-the-JMS-Reply-in-the-DIRECT-tp5753926.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to