You can create a Broker using:
broker = BrokerFactory.createBroker(new URI("xbean:activemq.xml"));
broker.start();
And then later pragmatically add connections to other brokers. Notice these
connectors forward messages to the remote host. The remote host would need
to do something similar if it wants to forward connections to this broker.
broker.addNetworkConnector("static:(tcp://remotehost:61616)");
See javadocs:
http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/broker/BrokerFactory.html#createBroker(java.net.URI)
http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/broker/BrokerService.html#addNetworkConnector(java.lang.String)
On 7/27/06, Venkatg <[EMAIL PROTECTED]> wrote:
Hi,
I have read most the of posts related to static brokers but I couldn't
find the solution for my problem.
My requirement, I have a embedded broker BE(back end) and publisher
running on some machine and when ever an embedded FE broker(Front end)
started it should connect to BE broker get the messages then onwards. FE
broker knows the IPaddress of the BE broker. There can more than one FE
broker running at any point of time. But I don't know the IP addresses of
FE
brokers before starting the BE server and also they can in different
subnets. So I can't give hard list of URI for networkConnector static list
on BE.
Please let me know how can I solve the above problem
Thanks
Venkat
--
View this message in context:
http://www.nabble.com/broker-static-dynamic-IP-list-tf2009183.html#a5519815
Sent from the ActiveMQ - User forum at Nabble.com.
--
Regards,
Hiram
Blog: http://hiramchirino.com