From af13cfc1cecd684673e995eeb36147a2a45730b6 Mon Sep 17 00:00:00 2001 From: Bosanac Dejan Date: Thu, 28 May 2009 12:58:35 +0000 Subject: [PATCH] reflecting camel-jms api changes git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@779587 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/camel/CamelMessageProducer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-camel/src/main/java/org/apache/activemq/camel/CamelMessageProducer.java b/activemq-camel/src/main/java/org/apache/activemq/camel/CamelMessageProducer.java index 05006a17a0..9dddb78ac6 100644 --- a/activemq-camel/src/main/java/org/apache/activemq/camel/CamelMessageProducer.java +++ b/activemq-camel/src/main/java/org/apache/activemq/camel/CamelMessageProducer.java @@ -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;