activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: New networkConnector programmatically
Date Wed, 21 Jun 2006 05:09:50 GMT
On 6/20/06, MartinZan <zanny@poczta.onet.pl> 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/

Mime
View raw message