How to receive messages from Glassfish (v3) JMS queue
0 down vote favorite
share [g+] share [fb] share [tw]
I have searched for the solution of my problem as much as I could. My App runs on Glassfish v3.This app sends a message to Glassfish JMS queue and this message is supposed to be read by a standalone client on the same host but outside Glassfish JVM.
I have written standalone client java code - have included appserv-rt.jar and gf-client.jar from Glassfish installation directory.
This client code is unable to receive the message.System out statements print till "got consumer".After that nothing happens.
If I change the name of the queue-I get an error saying Queue not found.So it seems client code is able to find queue but it does not receive any messages.What do I need to include in my client code?