OK, cool. I got that to work. Now what about the case in which I do not want to set the JMSReplyTo header field? How would that work?
Thanks for the help On Wed, Aug 11, 2010 at 4:51 PM, Claus Ibsen <claus.ib...@gmail.com> wrote: > If the JMS message has a JMSReplyTo header then the JMS consumer will > use request/reply automatically. > http://camel.apache.org/request-reply.html > > So you route should simply just be: > > <route> > <from uri="jms:queue.A" /> > <process ref="processor" /> > </route> > > So when the route ends, the consumer jms:queue.A will send the reply > back the the queue defined in the JMSReplyTo header. > > > On Wed, Aug 11, 2010 at 8:45 PM, Mark Webb <elihusma...@gmail.com> wrote: >> I am trying to figure out how to set up a request / response in Camel >> with ActiveMQ. Basically this is what I am looking for: >> >> >> myapp -> queue.A -> processor(DB query) -> queue.A -> myapp >> >> >> I have read through the documentation and the closest I have come is >> the following sping-camel example: >> >> <route> >> <from uri="jms:queue.A" /> >> <process ref="processor" /> >> <to uri="jms:queue.A" pattern="InOut" /> >> </route> >> >> This seems to work, but it doesn't seem right to me that I need a >> "from" and "to". Plus I get a >> org.apache.camel.ExchangeTimedOutException: exception on each message. >> >> >> Thanks for any help you have, >> Mark >> > > > > -- > Claus Ibsen > Apache Camel Committer > > Author of Camel in Action: http://www.manning.com/ibsen/ > Open Source Integration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > Twitter: http://twitter.com/davsclaus >