Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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
 
If I had asked people what they wanted, they would have said faster horses - Ford. Tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic