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.
