No longer passing the destination in the producer.send(..) method since it is already provided when the Session's createProducer(..) method is invoked. JMS providers can throw an UnsupportedOperationException when the Destination is provided in both places (INT-560).

This commit is contained in:
Mark Fisher
2009-02-18 15:13:34 +00:00
parent d65d6d7c49
commit 379f86ee4e

View File

@@ -157,7 +157,7 @@ public class ChannelPublishingJmsMessageListener implements SessionAwareMessageL
jmsReply.setJMSCorrelationID(jmsMessage.getJMSMessageID());
}
MessageProducer producer = session.createProducer(jmsMessage.getJMSReplyTo());
producer.send(jmsMessage.getJMSReplyTo(), jmsReply);
producer.send(jmsReply);
}
}
}