Hi Dejan,
Many thanks for your reply. I decided to take a stab at the code myself
and the attached patch not only seems to now allow me to authenticate
the connection, but also solves the problem of the discovered connector
not registering in JMX. I hope others might find it useful - is it worth
trying to push it up into trunk for future releases ?
Regards,
Rob
On 11/12/2012 12:51, Dejan Bosanac wrote:
Hi Rob,
unfortunately ldap network connector is not used much and so there
were no much development on it.
Alternatively, you can check http://fuse.fusesource.org/mq/docs/mq-fabric.html
which uses ZooKeeper for broker discovery.
Regards
--
Dejan Bosanac
----------------------
Red Hat, Inc.
FuseSource is now part of Red Hat
[email protected]
Twitter: @dejanb
Blog: http://sensatic.net
ActiveMQ in Action: http://www.manning.com/snyder/
On Mon, Dec 10, 2012 at 4:07 PM, Rob Coward <[email protected]> wrote:
http://activemq.apache.org/ldap-broker-discovery-mechanism.html
diff -aurN
activemq-5.7.0-orig/activemq-core/src/main/java/org/apache/activemq/network/LdapNetworkConnector.java
activemq-5.7.0/activemq-core/src/main/java/org/apache/activemq/network/LdapNetworkConnector.java
---
activemq-5.7.0-orig/activemq-core/src/main/java/org/apache/activemq/network/LdapNetworkConnector.java
2012-12-11 22:49:45.000000000 +0000
+++
activemq-5.7.0/activemq-core/src/main/java/org/apache/activemq/network/LdapNetworkConnector.java
2012-12-13 10:41:07.000000000 +0000
@@ -295,7 +295,11 @@
// want to map/manage these differently in the future
// boolean useJMX = getBrokerService().isUseJmx();
// getBrokerService().setUseJmx(false);
- NetworkConnector connector =
getBrokerService().addNetworkConnector(connectorURI);
+ NetworkConnector discoveryconnector = new
DiscoveryNetworkConnector(connectorURI);
+ discoveryconnector.setName(uuid);
+ discoveryconnector.setUserName(getUserName());
+ discoveryconnector.setPassword(this.password);
+ NetworkConnector connector =
getBrokerService().addNetworkConnector(discoveryconnector);
// getBrokerService().setUseJmx(useJMX);
// Propagate standard connector properties that may have been set via
XML