activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Siegenthaler" <>
Subject Re: ActiveMQ JNDI in Tomcat
Date Thu, 08 Nov 2007 20:00:20 GMT
You don't really need a Just place the activemq jar
in the common/lib (or lib if you're using tomcat 6) of your tomcat and
follow the configuration at


On 11/8/07, Dave Carlson <> wrote:
> Hello, We are trying to connect to an ActiveMQ server from a web app. We are having trouble
with the JNDI part of it. We have not been successful placing a file in the
WEB-INF/classes, nor anywhere else. The properties in our JNDI file are:
> java.naming.factory.initial org.apache.activemq.jndi.ActiveMQInitialContextFactory
> queue.activity_queue  activity_queue
> Regardless, we get a naming exception saying that activity_queue is not bound in this
context. We are trying to get this in the following manner:
> Context context = new javax.naming.InitialContext();
> return context.lookup(str);
> This works outside of the web server, but not in. Can anyone point me in the right direction?

View raw message