You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by snake360 <so...@msn.com> on 2009/06/26 22:36:53 UTC
Look up for destination name in JNDI
Hi,
I'm new to JMS and I'd like to develop a JMS publisher.
I have specified myTopic = seriousFacts in the jndi.properties file require
to set the initial
context but it doesn't detect it. I can't find any example of this kind of
file so I have no clue how to solve this. I'm getting the error
"javax.naming.NameNotFoundException: myTopic"
at the line "destination = (Destination)jndiContext.lookup("myTopic")"
How do I have to specify the destination please?
>From what I understood destination name is just any name for a topic or a
queuem isn't it?
Thanks
Snake
--
View this message in context: http://www.nabble.com/Look-up-for-destination-name-in-JNDI-tp24226934p24226934.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: initialize activemq web console in Java
Posted by snake360 <so...@msn.com>.
ok forget it, I didn't pay attention that Java was case sensitive.
However, I'd like to see activeMQ activity using the web console at
http://localhost:8161/admin but it isn't initialized by default when the
connection between my application and ActiveMQ is established.
Can I ask for its initialization in Java?
Thanks
Snake
--
View this message in context: http://www.nabble.com/Look-up-for-destination-name-in-JNDI-tp24226934p24227501.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: Look up for destination name in JNDI
Posted by snake360 <so...@msn.com>.
thanks guys !
--
View this message in context: http://www.nabble.com/Look-up-for-destination-name-in-JNDI-tp24226934p24315401.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: Look up for destination name in JNDI
Posted by Gary Tully <ga...@gmail.com>.
You don't have to use jndi as destination are created on the fly in
activemq. see:
http://activemq.apache.org/how-do-i-create-new-destinations.html
2009/6/26 snake360 <so...@msn.com>
>
> Hi,
> I'm new to JMS and I'd like to develop a JMS publisher.
> I have specified myTopic = seriousFacts in the jndi.properties file require
> to set the initial
> context but it doesn't detect it. I can't find any example of this kind of
> file so I have no clue how to solve this. I'm getting the error
> "javax.naming.NameNotFoundException: myTopic"
> at the line "destination = (Destination)jndiContext.lookup("myTopic")"
>
> How do I have to specify the destination please?
> From what I understood destination name is just any name for a topic or a
> queuem isn't it?
>
> Thanks
> Snake
> --
> View this message in context:
> http://www.nabble.com/Look-up-for-destination-name-in-JNDI-tp24226934p24226934.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>
>
--
http://blog.garytully.com
Open Source Integration
http://fusesource.com
Re: Look up for destination name in JNDI
Posted by Dejan Bosanac <de...@nighttale.net>.
Hi,
you should use
topic.myTopic = seriousFacts
in you JNDI configuration
Cheers
--
Dejan Bosanac
Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net
On Fri, Jun 26, 2009 at 10:36 PM, snake360 <so...@msn.com> wrote:
>
> Hi,
> I'm new to JMS and I'd like to develop a JMS publisher.
> I have specified myTopic = seriousFacts in the jndi.properties file require
> to set the initial
> context but it doesn't detect it. I can't find any example of this kind of
> file so I have no clue how to solve this. I'm getting the error
> "javax.naming.NameNotFoundException: myTopic"
> at the line "destination = (Destination)jndiContext.lookup("myTopic")"
>
> How do I have to specify the destination please?
> From what I understood destination name is just any name for a topic or a
> queuem isn't it?
>
> Thanks
> Snake
> --
> View this message in context:
> http://www.nabble.com/Look-up-for-destination-name-in-JNDI-tp24226934p24226934.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>
>