Ah okay You just want to send a fire and forget message but it should have the JMSReplyTo header set.
Then see this unit test http://svn.apache.org/viewvc?rev=992224&view=rev On Thu, Sep 2, 2010 at 8:03 PM, kumaap <amitesh.a.ku...@gmail.com> wrote: > > It seems the in the JmsProducer when processing InOnly it ignores the > replyTo property > > MessageCreator messageCreator = new MessageCreator() { > public Message createMessage(Session session) throws > JMSException { > return endpoint.getBinding().makeJmsMessage(exchange, in, > session, null); > } > }; > the makeJmsMessage method cant convert String to Destination which makes > sense > > maybe the message creator for processInOnly should be more like this, > considering you need a session to create a destination > > MessageCreator messageCreator = new MessageCreator() { > public Message createMessage(Session session) throws > JMSException { > Message message = > endpoint.getBinding().makeJmsMessage(exchange, in, session, null); > if(endpoint.getReplyTo() != null){ > Destination reply = > session.createQueue(endpoint.getReplyTo()); <-- maybe detect if its a queue > or topic by checking the suffix of endpoint.getReplyTo() first > message.setJMSReplyTo(reply); > } > return message ; > } > }; > > If this is not the way to set JMSReplyTo can you point me in the correct > direction. What i Don't want to do is subscribe to the JMSReplyTo > destination. > -- > View this message in context: > http://camel.465427.n5.nabble.com/Setting-JMS-ReplyTo-tp2800345p2801138.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