Hi,

Yeah, it's possible. For an instance in Servicemix we have etc/ activemq-broker.xml blueprint file to define an Activemq broker, you may need take a look.

Though the Servicemix etc/activemq-broker.xml use embeded broker, it's quite straightforward to configure an external broker You just need remove <broker.....>... </broker> bean from etc/activemq- broker.xml
Also you need revise
<bean id="activemqConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"> <property name="brokerURL" value="vm://default? create=false&amp;waitForStart=10000" />
</bean>
change
<property name="brokerURL" value="vm://default? create=false&amp;waitForStart=10000" />
to
<property name="brokerURL" value="the external broker url you have" />

Freeman
On 2012-7-9, at 上午8:27, helander wrote:

I am using Camel and in some routes JMS are used to send messages to an
external broker.
The routes are defined in blueprint files ( xml files) and they all refer to the same broker, so I would like to have the broker definition in a separate
blueprint file.

Is this possible? How do you do it?

/Lars

--
View this message in context: 
http://karaf.922171.n3.nabble.com/Define-JMS-component-in-separate-blueprint-tp4025178.html
Sent from the Karaf - User mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042










Reply via email to