You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Danushka Menikkumbura <da...@wso2.com> on 2008/07/30 10:56:27 UTC
ActiveMQ JNDI Tutorial
Where can I find the ActiveMQ JNDI tutorial?. The link
http://activemq.codehaus.org/JNDI%20Support seems to be broken for me.
--
Danushka Menikkumbura
Technical Lead, WSO2 Inc.
blog : http://danushka-menikkumbura.blogspot.com/
http://wso2.com/ - The Open Source SOA Company
Re: ActiveMQ JNDI Tutorial
Posted by Danushka Menikkumbura <da...@wso2.com>.
> please take a look at the following thread
> http://www.nabble.com/sending-message-from-an-external-client-tt16956671.html#a16959605
>
>
> and jndi.properties file attached as an example
Cool. Thanks Dejan!.
Danushka
Re: ActiveMQ JNDI Tutorial
Posted by Dejan Bosanac <de...@ttmsolutions.com>.
Hi
Danushka Menikkumbura wrote:
> What do you mean by configuring connection factories?. What
> configuration parameters can we use?
>
please take a look at the following thread
http://www.nabble.com/sending-message-from-an-external-client-tt16956671.html#a16959605
and jndi.properties file attached as an example
Cheers
--
Dejan Bosanac
http://www.ttmsolutions.com
http://www.scriptinginjava.net
Re: ActiveMQ JNDI Tutorial
Posted by Danushka Menikkumbura <da...@wso2.com>.
Hi Dejan,
Yes. Your comments helped a lot. Thanks. And one more thing.
> You can configure multiple connection factories and lookup the one you
> need, e.g.
What do you mean by configuring connection factories?. What
configuration parameters can we use?
Thanks,
Danushka
Re: ActiveMQ JNDI Tutorial
Posted by Dejan Bosanac <de...@ttmsolutions.com>.
Hi
>
> (1). Is it possible to have the jndi.properties file anywhere we wish
> and let the InitialContextFactory know where it is?(rather than having
> it in the classpath)
You can always load properties from custom file (using
java.util.Properties) and initialize InitialContext with those properties.
>
> (2). What is the purpose of having connectionFactoryNames in
> jndi.properties?. It allows us to have custom JNDI connection factory
> names?
>
You can configure multiple connection factories and lookup the one you
need, e.g.
ConnectionFactory factory = ctx.lookup("factory001");
Hope this help
BTW. I updated docs with the link to the source distribution
(http://cwiki.apache.org/confluence/display/ACTIVEMQ/JNDI+Support)
Cheers
--
Dejan Bosanac
http://www.ttmsolutions.com
http://www.scriptinginjava.net
Re: ActiveMQ JNDI Tutorial
Posted by Danushka Menikkumbura <da...@wso2.com>.
> Try this one: http://activemq.apache.org/jndi-support.html
Dejan,
That of course I can access already. I have the following problems,
hopefully you can help me.
(1). Is it possible to have the jndi.properties file anywhere we wish
and let the InitialContextFactory know where it is?(rather than having
it in the classpath)
(2). What is the purpose of having connectionFactoryNames in
jndi.properties?. It allows us to have custom JNDI connection factory names?
Danushka
Re: ActiveMQ JNDI Tutorial
Posted by Dejan Bosanac <de...@ttmsolutions.com>.
Try this one: http://activemq.apache.org/jndi-support.html
Cheers
--
Dejan Bosanac
http://www.ttmsolutions.com
http://www.scriptinginjava.net
Danushka Menikkumbura wrote:
> Where can I find the ActiveMQ JNDI tutorial?. The link
> http://activemq.codehaus.org/JNDI%20Support seems to be broken for me.
>