Forums Register Login

How to receive message from a MDB?

+Pie Number of slices to send: Send
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...
+Pie Number of slices to send: Send
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.
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 895 times.
Similar Threads
TimeOut in sending and receiving message in MQ5.3 thorugh RAD 8
looking for MDB
JMS Request/Reply mode
MessageListener in AQ JMS
P2P using WSAD's embedded JMS- Naming Exception
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:17:13.