You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Daniel Luis dos Santos <da...@gmail.com> on 2010/03/22 00:04:50 UTC

Discover queues and topics on JNDI

Hello,

I am trying to discover what queues and topics are registered on the JNDI
namespace of activeMQ. Right now I am discovering the connection factories
and a dynamicTopics and dynamicQueues naming contexts that I don't know what
they are.

Is it possible ?
-- 
View this message in context: http://old.nabble.com/Discover-queues-and-topics-on-JNDI-tp27978162p27978162.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Discover queues and topics on JNDI

Posted by Dejan Bosanac <de...@nighttale.net>.
Hi Daniel,

I referred to statically created destinations in jndi.properties. I'm not
sure you can use JNDI to list all available destinations on the broker.
You'd better use JMX for that (http://activemq.apache.org/jmx.html)

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Mon, Mar 22, 2010 at 11:42 AM, Daniel Luis dos Santos <
daniel.dlds@gmail.com> wrote:

>
> If you are referring to the "Dynamically creating destinations" part, I
> have
> found those names in JNDI (dynamicQueues and dynamicTopics), tried to do a
> list and got a naming exception. Other than those names only got the
> connection factory objects. The destinations seen in the admin console are
> stored where (like the queue example.A)?
>
>
>
> Dejan Bosanac wrote:
> >
> > Hi,
> >
> > all explicitly created destinations should be listed. Are you sure you're
> > creating destinations with the appropriate prefix as explained here:
> >
> > http://activemq.apache.org/jndi-support.html
> >
> > Cheers
> > --
> > Dejan Bosanac - http://twitter.com/dejanb
> >
> > Open Source Integration - http://fusesource.com/
> > ActiveMQ in Action - http://www.manning.com/snyder/
> > Blog - http://www.nighttale.net
> >
> >
> > On Mon, Mar 22, 2010 at 12:04 AM, Daniel Luis dos Santos <
> > daniel.dlds@gmail.com> wrote:
> >
> >>
> >> Hello,
> >>
> >> I am trying to discover what queues and topics are registered on the
> JNDI
> >> namespace of activeMQ. Right now I am discovering the connection
> >> factories
> >> and a dynamicTopics and dynamicQueues naming contexts that I don't know
> >> what
> >> they are.
> >>
> >> Is it possible ?
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Discover-queues-and-topics-on-JNDI-tp27978162p27978162.html
> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > -----
> > Dejan Bosanac
> >
> > Open Source Integration - http://fusesource.com/
> > ActiveMQ in Action - http://www.manning.com/snyder/
> > Blog - http://www.nighttale.net
> >
>
> --
> View this message in context:
> http://old.nabble.com/Discover-queues-and-topics-on-JNDI-tp27978162p27984578.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Re: Discover queues and topics on JNDI

Posted by Daniel Luis dos Santos <da...@gmail.com>.
If you are referring to the "Dynamically creating destinations" part, I have
found those names in JNDI (dynamicQueues and dynamicTopics), tried to do a
list and got a naming exception. Other than those names only got the
connection factory objects. The destinations seen in the admin console are
stored where (like the queue example.A)?



Dejan Bosanac wrote:
> 
> Hi,
> 
> all explicitly created destinations should be listed. Are you sure you're
> creating destinations with the appropriate prefix as explained here:
> 
> http://activemq.apache.org/jndi-support.html
> 
> Cheers
> --
> Dejan Bosanac - http://twitter.com/dejanb
> 
> Open Source Integration - http://fusesource.com/
> ActiveMQ in Action - http://www.manning.com/snyder/
> Blog - http://www.nighttale.net
> 
> 
> On Mon, Mar 22, 2010 at 12:04 AM, Daniel Luis dos Santos <
> daniel.dlds@gmail.com> wrote:
> 
>>
>> Hello,
>>
>> I am trying to discover what queues and topics are registered on the JNDI
>> namespace of activeMQ. Right now I am discovering the connection
>> factories
>> and a dynamicTopics and dynamicQueues naming contexts that I don't know
>> what
>> they are.
>>
>> Is it possible ?
>> --
>> View this message in context:
>> http://old.nabble.com/Discover-queues-and-topics-on-JNDI-tp27978162p27978162.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -----
> Dejan Bosanac
> 
> Open Source Integration - http://fusesource.com/
> ActiveMQ in Action - http://www.manning.com/snyder/
> Blog - http://www.nighttale.net
> 

-- 
View this message in context: http://old.nabble.com/Discover-queues-and-topics-on-JNDI-tp27978162p27984578.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Discover queues and topics on JNDI

Posted by Dejan Bosanac <de...@nighttale.net>.
Hi,

all explicitly created destinations should be listed. Are you sure you're
creating destinations with the appropriate prefix as explained here:

http://activemq.apache.org/jndi-support.html

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Mon, Mar 22, 2010 at 12:04 AM, Daniel Luis dos Santos <
daniel.dlds@gmail.com> wrote:

>
> Hello,
>
> I am trying to discover what queues and topics are registered on the JNDI
> namespace of activeMQ. Right now I am discovering the connection factories
> and a dynamicTopics and dynamicQueues naming contexts that I don't know
> what
> they are.
>
> Is it possible ?
> --
> View this message in context:
> http://old.nabble.com/Discover-queues-and-topics-on-JNDI-tp27978162p27978162.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>