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:
Bosanac Dejan 2009-05-28 12:58:35 +00:00
parent 1d5440a1cd
commit af13cfc1ce
1 changed files with 1 additions and 1 deletions

View File

@ -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;