This week's book giveaway is in the Cloud/Virtualization forum. We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line! See this thread for details.
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
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.