This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes JMS - Name QueueConnectionFactory is not bound in this Context Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "JMS - Name QueueConnectionFactory is not bound in this Context" Watch "JMS - Name QueueConnectionFactory is not bound in this Context" New topic
Author

JMS - Name QueueConnectionFactory is not bound in this Context

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 744
Hi... I have one web application (war) file.

Which contains
- one java class (which contains 2 method, one which produces 10 message and one which consumes that is read 10 messages.)
- one Controller Servlet
- two JSP. Produce.jsp and consume.jsp
- jndi.properties file.
- I am using ActiveMQ as message broker.

I can produce the messages but i'm not able to consume messages, i'm getting the following error

Stack Trace


Strange thing is that when i run my consumer from a simple java application which contains main method which consumes the messages,

Its working fine. but only with web application i'm not able to consume messages.


Bellow is the content of jndi.properties file



Bellos is the code for consuming messages



If anybody can help me out, i will be thankful.

Thanks & Regards,
[ July 08, 2008: Message edited by: Jigar Naik ]

Jigar Naik


 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JMS - Name QueueConnectionFactory is not bound in this Context
 
Similar Threads
JSP & JMS
looking for MDB
P2P using WSAD's embedded JMS- Naming Exception
P2P using WSAD's embedded JMS- Naming Exception
Properties in InitialContext for SimpleQueueReceiver.java, MQ5.3 server remotely