Hi Claus,
I still cannot get the this simple scenario working - Shame on me! Any
assistance will be appreciated.
I have the following route in the configure (@override) method of my test
class.
/from("jms:validate?*replyTo=validateResul*t").bean(ValidatorBean.class).to("jms:validateResult");/
Is this the right route? Basically I want to consume messages as they arrive
in jms:validate Queue and send it to the Validator Bean. The validator bean
returns a string (return "DONE";). I want the reply to send to the
jms:validateResult Queue!
I'm sending the message as follows:
/template.sendBody("jms:validate", "<order name=\"motor\" amount=\"1\"
customer=\"honda\"/>")
/. The message gets to the Validator Bean!
I see the following output!
[ead #0 - JmsConsumer[validate]] TemporaryQueueReplyManager INFO
Starting reply listener container on endpoint:
Endpoint[jms://validateResult]
[ead #0 - JmsConsumer[validate]] JmsProducer INFO Using
*JmsReplyManager*:
org.apache.camel.component.jms.reply.*TemporaryQueueReplyManager*@918c34 to
process replies from temporary queue
[TimeoutChecker[validateResult]] DefaultErrorHandler ERROR Failed
delivery for exchangeId: ID-P4797K00-3997-1323804563828-0-3. Exhausted after
delivery attempt: 1 caught: org.apache.camel.ExchangeTimedOutException: The
OUT message was not received within: 20000 millis.
Exchange[JmsMessage@0x1125fe1]
In the above trace I do see JmsReplyManager Queue as the producer but the
following line indicated it is starting TemporaryQueueReplyManager! Is this
step OK!
I'm consuming the message from the result Queue as follows:
Object result =
super.consumer().receive("jms:validateResult").getOut();
Am I doing the right thing?
Any help will be appreciated. I'm making a case to my client to replace SCA
(Tuscany) bindings with Camel as they seem to be so simple and elegant. So
give me a had please!
I appreciate in advance!
Matt
--
View this message in context:
http://camel.465427.n5.nabble.com/Basic-JMS-to-bean-In-Out-Router-Question-tp5069797p5072539.html
Sent from the Camel - Users mailing list archive at Nabble.com.