I created and deployed a MDB. I built a test client which send message to the MDB. It looks as follow:
Now I try to build a test client to receive the message. My codes look as folow:
But as I run it, but it seems it doesn't go to end. It is waiting...
Amit M Tank
posted 7 years ago
What you have written is a message listener and not an MDB. Your message listener program ends before the onMessage() method can be called on the Listener. You need to keep your program alive so that the onMessage method be called.