• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

actveMQ 5.5 jndi is not working

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic