activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Fernandez <>
Subject Re: JNDI and LDAP
Date Wed, 03 Sep 2008 13:23:22 GMT

Sorry about the late response to your post, but I was just playing around
with the concept of storing ActiveMQ admin objects in a LDAP directory
service and I remembered this post. 

The ActiveMQ administered objects (i.e., ActiveMQConnectionFactory,
ActiveMQTopic, and ActiveMQQueue) all implement Referenceable. Therefore,
you simply create a LDAP Context (com.sun.jndi.ldap.LdapCtx) through which
you can bind, unbind, and lookup the AMQ admin objects to and from the LDAP
directory server. 

You can administer AMQ admin objects via an LDAP browser like Apache Studio. 
Here's an LDIF for an ActiveMQConnectionFactory object.

dn: cn=factory2,ou=adminobjects,o=activemq,dc=example,dc=com
objectClass: javaNamingReference
objectClass: javaObject
objectClass: javaContainer
objectClass: top
cn: factory2
javaclassname: org.apache.activemq.ActiveMQConnectionFactory
javafactory: org.apache.activemq.jndi.JNDIReferenceFactory
javareferenceaddress: #0#blobTransferPolicy.uploadUrl#http://localhost:8080/
javareferenceaddress: #1#brokerURL#tcp://localhost:61670
javareferenceaddress: #2#objectMessageSerializationDefered#false
javareferenceaddress: #4#redeliveryPolicy.initialRedeliveryDelay#1000
javareferenceaddress: #3#prefetchPolicy.queuePrefetch#1000

Make sure you study rfc2713. 

Hope this helps. 
Get a free ActiveMQ user guide @ 

Honcho wrote:
> Hi,
> I am looking to switch from SUN MQ to activemq.The current set-up uses
> LDAP to store administered objects.
> Are there any documents on how to administer the
> ActiveMQConnectionFactory?
> How to add a ActiveMQConnectionFactory to LDAP?
> Thanks,
> Vishal

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message