On 6/20/06, MartinZan <[EMAIL PROTECTED]> wrote:

  Hi,

 Is there a programmatic way to create a new networkConnector with a remote
Broker ?
I need create this connector during runtime. Broker is not embeded.

inside the JVM of the broker you can call

BrokerService.addNetworkConnector() at any time
http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/broker/BrokerService.html#addNetworkConnector(java.lang.String)

(you may wanna start the returned connector too).

If another JVM is deciding that a broker should form a new network
connection you might want to consider implementing your own discovery
agent - or sending a message to some Java code hosted in the broker as
a plugin of some kind.

Just out of interest; why you want to create a new network connector at runtime?
--

James
-------
http://radio.weblogs.com/0112098/

Reply via email to