On Fri, Sep 3, 2010 at 11:11 AM, kumaap <amitesh.a.ku...@gmail.com> wrote: > > Hi, > > I don't know how you got the unit test to work as its not running with camel > 2.4 . I can see why JMSReplyTo should be a destination object but the unit > test its a string. > > The JmsBinding.makeJmsMessage executes the appendJmsProperties > > " > else if (headerName.equals("JMSReplyTo") && headerValue != null) { > > jmsMessage.setJMSReplyTo(ExchangeHelper.convertToType(exchange, > Destination.class, headerValue));" > > There is no converter to convert a string to a destination so it will always > be null. >
Thats part of ActiveMQ. > And you cant just create a Destination object unless you have a JMS Session. > What JMS broker are you using? I would assume the JMSReplyTo value can contains some string which indicate which queue to reply. If not then its your job to add the Destination type yourself. For example you can leverage Spring's resolver for that org.springframework.jms.support.destination.DestinationResolver Which you may be able to google and find solutions with your JMS broker (if you are not using AMQ) > Cheers > Amitesh > > > > > > > > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Setting-JMS-ReplyTo-tp2800345p2801917.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- 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