activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sub3 <st...@subwest.com>
Subject Re: addNetworkConnector - JMX Error
Date Fri, 23 Sep 2011 21:14:07 GMT
You can't set the connector name because it fails on the first line, before
the connector object is returned.

I did find an answer (documenting here in case anyone googles this group
later). Basically, don't use the addNetworkConnector(String), but instead
addNetworkConnector(NetworkConnector).

> NetworkConnector connector = new DiscoveryNetworkConnector(uri);
> connector.setName(host+"Connector");
> connector.setDuplex(true);
> broker.addNetworkConnector(connector);
> connector.start();

Thanks for your help.


--
View this message in context: http://activemq.2283324.n4.nabble.com/addNetworkConnector-JMX-Error-tp3834836p3838096.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message