Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

actveMQ 5.5 jndi is not working  RSS feed

 
gaurav abbi
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to use JNDI with activeMQ as described in the link.

ActiveMQ JNDI Support

I am able to create a static queue (it is being displayed in the admin webpage under queues) and want to access it through JNDI, but after giving all the proper values it does not show up on the JNDI Context in the JMS Client.
Only the lookup is giving me "ConnectionFactory" and I am able to send and recieve the messages for dynamic queue, but lookup fails for the static queue.

I also verified that the jndi.properties is coming in the classpath by changing the wrapper.conf
wrapper.java.classpath.1=/home/gauravabbi/softwares/activeMQ/apache-activemq-5.5.0/customize/jndi.properties

and verified the same in the start up logs.

It looks like activemq is not using it at all as the factory names, i am specifying are also not coming up.

below is my jndi.properties file
java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
java.naming.provider.url=vm://localhost
connectionFactoryNames=connectionFactory1, queueConnectionFactory, topicConnectionFactry
# queue.[jndiName] = [physicalName]
queue.MyQueue=MyQueue.queue
# topic.[jndiName] = [physicalName]


Kind of stuck at this for a long time.

I am using ubuntu 10.04 and running activeMQ/apache-activemq-5.5.0/bin/linux-x86-32/activemq script to start activemq
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!