by default, JMS is InOnly mode and will only return an ACK that the message was received. You need to explicitly set it to InOut to enable request/reply behavior...
see this test... https://svn.apache.org/repos/asf/camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsSimpleRequestReply2Test.java Castyn wrote: > > I am trying to send a static message to a JMS queue on another instance of > servicemix that a team I work with manages, so I am using a velocity > template that is the SOAP message and routing to a remote activeMQ. I > have the connection information and have configured it in the spring xml > along with the route. For some reason the message either never gets to > the queue (and I get a socket timeout exception) or the next part of the > route has the original SOAP request message as the body instead of the > response I am trying to get. Was hoping for some enlightenment on this. > Both of these are in the same camel context XML. > > *The route:* > <route id="theRequest"> > <from uri="timer://testRoute?fixedRate=true&period=1h"/> > <to uri="velocity://velocity/theRequest.vm" /> > <to uri="activemqhcm:queue:JMS/HCM.ESB.REQ"/> > <to uri="file:data/test?fileName=theResponse.xml"/> > </route> > > *The activeMQ component:* > <bean id="activemqhcm" > class="org.apache.activemq.camel.component.ActiveMQComponent"> > <property name="brokerURL" > value="failover:(tcp://adcmqp3:61616,tcp://adcmqp4:61616)?randomize=false"/> > </bean> > > > Not sure if anything relevant is in here to the issue, but the definition > of the remote activemq from the other team is: > jms.requestQueueName=JMS/HCM.ESB.REQ > jms.brokerURL=failover:(tcp://adcmqp3:61616,tcp://adcmqp4:61616)?randomize=false > jms.receiveTimeout=100000 > jms.timeToLive=100000 > jms.recoveryInterval=100000 > jms.maxConcurrentConsumers=10 > jms.maxConcurrentTasks=50 > jms.concurrentConsumers=5 > jms.explicitQosEnabled=true > jms.deliveryMode=1 > ----- Ben O'Day IT Consultant -http://consulting-notes.com -- View this message in context: http://camel.465427.n5.nabble.com/Routing-Message-to-remote-ActiveMQ-tp5004610p5004897.html Sent from the Camel - Users mailing list archive at Nabble.com.