Hello, I can't figure out how to change broker-name when using activemq
inside servicemix.
I changed broker-name in the file etc/org.apache.activemq.server-default.cfg
(to 'local-broker').
But I've an error because org.apache.servicemix.activemq.service is trying
to use default broker name 'amq-broker'.
Could anyone tell me what I missed?
Looking at the bundle blueprint (activemq-service.xml); it might be related
to the difference between placeholder configurations (${} vs $[]).
Some exemple from the blueprint :
<property name="brokerURL"
value="vm://${broker-name}?create=false&waitForStart=10000"/>
<property name="userName" value="$[activemq.jmx.user]" />
Below some details
Error message :
015-01-22 17:28:30,036 | ERROR | referentiel.out] |
faultJmsMessageListenerContainer | 110 -
org.apache.servicemix.bundles.spring-jms - 3.2.9.RELEASE_1 | Could not
refresh JMS Connection for destination 'v6.referentiel.out' - retrying in
5000 ms. Cause: Error while attempting to add new Connection to the pool;
nested exception is javax.jms.JMSException: Could not create Transport.
Reason: java.io.IOException: Broker named 'amq-broker' does not exist.
I'm using servicemix 5.3 / activemq 5.10
Features
activemq 5.10.0 activemq-core-5.10.0 Installed
activemq-blueprint 5.10.0 activemq-5.10.0 Uninstalled
activemq-broker 5.10.0 activemq-5.10.0 Uninstalled
activemq-broker-noweb 5.10.0 activemq-5.10.0 Installed
activemq-camel 5.10.0 activemq-5.10.0 Installed
activemq-client 5.10.0 activemq-core-5.10.0 Installed
activemq-service 5.3.0 servicemix-features-5.3.0 Installed
activemq-web-console 5.10.0 activemq-5.10.0 Installed
Bundles
activeio-coreorg.apache.activemq.activeio-core 3.1.4,
activemq-camelorg.apache.activemq.activemq-camel 5.10.0,
activemq-karafactivemq-karaf 5.10.0,
activemq-osgiorg.apache.activemq.activemq-osgi 5.10.0,
activemq-web-consoleorg.apache.activemq.activemq-web-console
5.10.0,
Apache ServiceMix :: ActiveMQ :: Camelorg.apache.servicemix.activemq.camel
5.3.0,
Apache ServiceMix :: ActiveMQ ::
Serviceorg.apache.servicemix.activemq.service 5.3.0
In file etc/org.apache.activemq.server-default.cfg
broker-name = local-broker
config=${karaf.base}/etc/activemq.xml
In file etc/activemq.xml
<broker xmlns="http://activemq.apache.org/schema/core"
brokerName="${broker-name}"
Thank you for your help
--
View this message in context:
http://activemq.2283324.n4.nabble.com/activemq-inside-servicemix-change-broker-name-tp4690323.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.