Meaningless Drivel is fun!*
The moose likes EJB and other Java EE Technologies and the fly likes JMS Consumer not receiving any messages. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS Consumer not receiving any messages." Watch "JMS Consumer not receiving any messages." New topic
Author

JMS Consumer not receiving any messages.

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 753
Hi bellow is the code for JMS Consumer. I have tried to debug the code but the program is not calling onMessage() even though there are messages.

am i missing something ?



Jigar Naik


Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 753
Hey,

I have commented the following line of code, and i received all the messages.



but then when should i close the consumer, session and connection ???
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3703
    
    5

In a finally block, to guarantee they get closed.


My Blog: Down Home Country Coding with Scott Selikoff
Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 753
all right.. thanks
 
jQuery in Action, 2nd edition
 
subject: JMS Consumer not receiving any messages.
 
Similar Threads
Error while using MDB with JMS
MDB onMessage not invoked
JMS Consumer ends even after implementing MessageListener interface.
JMS question
JMS on JBOSS- Asynchronous Queue Receiver