activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sub3 <>
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

> 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:
Sent from the ActiveMQ - User mailing list archive at

View raw message