I am trying to network/cluster two ActiveMQ Brokers. BrokerA & BrokerB
In BrokerA activemq-broker.xml:
<networkConnectors> <!-- Make a static connection to JMS Broker Host --> <networkConnector name="connection_to_BrokerB_out" uri="static://(tcp://BrokerB_Hostname:61626)"></networkConnector> </networkConnectors>
In BrokerB activemq-broker.xml:
<!-- The transport connectors ActiveMQ will listen to --> <transportConnectors> <transportConnector name="remote_in_broker" uri="tcp://0.0.0.0:61626"></transportConnector> <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"></transportConnector> <transportConnector name="stomp" uri="stomp://0.0.0.0:61613"></transportConnector> </transportConnectors>
Start Both JMS Brokers A & B (on different hosts).
I connect to BrokerB and create a consumer on topic X.
I connect to BrokerA and produce/publish to topic X.
BrokerB does not receive any messages on topic X?
No Error in the log file?
After some time/effort I figured-out that: if you edit FUSE-ROOT/etc/activemq-broker.xml and restart Servicemix the edits/modifications are NOT applied? Is activemq-broker.xml cached somewhere (osgibundle:/META-INF/spring/*.xml)?
I did the old remove the data directory trick and SeriveMix would not re-start? Something new in this release?
The only way I could get it to work was to do a complete re-install, edit activemq-broker.xml then start servicemix. Is there way the have servicemix re-read/initialize activemq-broker.xml on a re-start?
Did a little more analysis I have the follow line in my servicemix log:
14:58:50,697 | INFO | ExtenderThread-1 | XmlBeanDefinitionReader | tory.xml.XmlBeanDefinitionReader 323 | Loading XML bean definitions from URL [bundleentry://65.fwk409971196/META-INF/spring/activemq-broker.xml]
Looks like the activeMQ bundle (with enclosed: META-INF/spring/activemq-broker.xml) is being cache in apache-servicemix-4.2.0-fuse-02-00/data/cache/org.eclipse.osgi/bundles/65/1/bundlefile. How do I tell servicemix to rebuild/deploy activeMQ bundle using apache-servicemix-4.2.0-fuse-02-00/etc/activemq-broker.xml?
Edited by: pchandler on Jul 23, 2010 5:28 PM
Edited by: pchandler on Jul 26, 2010 7:20 PM