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.

Reply via email to