mirror of
https://github.com/apache/activemq.git
synced 2025-02-18 16:10:45 +00:00
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1059638 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1b9e94fb46
commit
be9bdab07b
@ -18,6 +18,7 @@ package org.apache.activemq.camel.component;
|
|||||||
|
|
||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
|
|
||||||
|
import org.apache.activemq.ActiveMQConnectionFactory;
|
||||||
import org.apache.activemq.Service;
|
import org.apache.activemq.Service;
|
||||||
import org.apache.camel.CamelContext;
|
import org.apache.camel.CamelContext;
|
||||||
import org.apache.camel.component.jms.JmsComponent;
|
import org.apache.camel.component.jms.JmsComponent;
|
||||||
@ -59,6 +60,9 @@ public class ActiveMQComponent extends JmsComponent {
|
|||||||
((ActiveMQConfiguration) answer.getConfiguration())
|
((ActiveMQConfiguration) answer.getConfiguration())
|
||||||
.setBrokerURL(brokerURL);
|
.setBrokerURL(brokerURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set the connection factory with the provided broker url
|
||||||
|
answer.setConnectionFactory(new ActiveMQConnectionFactory(brokerURL));
|
||||||
return answer;
|
return answer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user