activemq-users mailing list archives

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

(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?


View raw message