Ok ive go my unit test to work by changing sendBody to
template.request("direct:start",new Processor() { public void process(Exchange exchange) throws Exception { exchange.getIn().setBody("Moon"); } }); But bellow is my realife problem , which is still not working , the replyTo isnt getting set <?xml version="1.0" encoding="UTF-8"?> <route xmlns="http://camel.apache.org/schema/spring" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoStartup="false" errorHandlerRef="errorHandler" group="o1" id="v_to_app2_iso" trace="true" xsi:schemaLocation="http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> <from uri="rulesEngine:app2iso"/> <to uri="ciblToXml"/> <to uri="xmlToString"/> <to uri="stringToJmsText"/> <setHeader headerName="soapAction"> <constant>http://test/wcf/sample/OnMessage</constant> </setHeader> <setHeader headerName="endpointURL"> <constant>jms:/queue?destination=f.wcf...@ebvvqm1&connectionFactory=connectQueueManager(EBVVQM1)binding(client)clientChannel(SVR.F.WCF.ST)clientConnection(aurora(6401))sslKeyRepository(RootsAndDummyCert)sslCipherSpec(TRIPLE_DES_SHA_US)&initialContextFactory=com.ibm.mq.jms.Nojndi</constant> </setHeader> <to uri="jms:cn=q_to_app2_iso?transacted=true&replyTo=SYSTEM.SOAP.RESPONSE.QUEUE&jmsMessageType=Text&connectionFactoryName=qcf_orac_to_app2_iso&username=${route.mqm.user}&password=${route.mqm.password}"/> </route> -- View this message in context: http://camel.465427.n5.nabble.com/Setting-JMS-ReplyTo-tp2800345p2800721.html Sent from the Camel - Users mailing list archive at Nabble.com.