Forums Register Login

JMS - Name QueueConnectionFactory is not bound in this Context

+Pie Number of slices to send: Send
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 ]
What does a metric clock look like? I bet it is nothing like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 6398 times.
Similar Threads
looking for MDB
JSP & JMS
Properties in InitialContext for SimpleQueueReceiver.java, MQ5.3 server remotely
P2P using WSAD's embedded JMS- Naming Exception
P2P using WSAD's embedded JMS- Naming Exception
Enterprise Java integration with Delphi and Free Pascal applications - new release 2019.02
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:39:32.