mirror of https://github.com/apache/activemq.git
Fixing compile issue cause by camel API change
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@573005 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
65454017fc
commit
9e61ade946
|
@ -25,6 +25,7 @@ import org.apache.activemq.ActiveMQMessageProducerSupport;
|
|||
import org.apache.activemq.ActiveMQSession;
|
||||
import org.apache.activemq.util.JMSExceptionSupport;
|
||||
import org.apache.camel.Endpoint;
|
||||
import org.apache.camel.ExchangePattern;
|
||||
import org.apache.camel.Producer;
|
||||
import org.apache.camel.component.jms.JmsExchange;
|
||||
import org.apache.camel.util.ObjectHelper;
|
||||
|
@ -86,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.getContext(), camelDestination.getBinding(), message);
|
||||
JmsExchange exchange = new JmsExchange(endpoint.getContext(), ExchangePattern.InOnly, camelDestination.getBinding(), message);
|
||||
producer.process(exchange);
|
||||
} catch (JMSException e) {
|
||||
throw e;
|
||||
|
|
Loading…
Reference in New Issue