mirror of https://github.com/apache/activemq.git
reflecting camel-jms api changes
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@779587 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1d5440a1cd
commit
af13cfc1ce
|
@ -87,7 +87,7 @@ public class CamelMessageProducer extends ActiveMQMessageProducerSupport {
|
|||
throw new IllegalArgumentException("Invalid destination setting: " + destination + " when expected: " + this.destination);
|
||||
}
|
||||
try {
|
||||
JmsExchange exchange = new JmsExchange(endpoint.getCamelContext(), ExchangePattern.InOnly, camelDestination.getBinding(), message);
|
||||
JmsExchange exchange = new JmsExchange(endpoint, ExchangePattern.InOnly, camelDestination.getBinding(), message);
|
||||
producer.process(exchange);
|
||||
} catch (JMSException e) {
|
||||
throw e;
|
||||
|
|
Loading…
Reference in New Issue