JMS MDB Listener has multiple instances on single node
Multiple instances of the same JMS MDB Listener were noticed in System Management Application (SMA) on a single node when the listener is processing multiple messages.
Steps to Reproduce
- Configure JMS MDB Listener.
- Enter more than five messages into the queue simultaneously.
- View the Listeners in SMA.
It is an expected behavior.
Here's the explanation for the reported behavior:
Everytime a message comes into the queue, onMessage is called in PRPC, and it searches for mListenerID. This method is called asynchronously by JMS when a message arrives at the queue. If it is null, it creates an instance.
0% found this useful