how to understand this regarding multiple message listener method?
posted 8 years ago
I need someone's opinion regarding how to understand this statement from MZ's note:
A bean's message listener interface may define more than one message listener method. If the message listener interface contains more than one method, it is the resource adapter that determines which method is invoked.
To my knowledge, the javax.jms.MessageListener only defined one single method - onMessage() which the bean need to implement, so how to interpret the above quote? I am guessing that could that actually means that the bean can implement different MESSAGE LISTENER INTERFACE for the messaging type that the message-driven bean supports? but can only supports one specific MESSAGE LISTENER INTERFACE not multiple.
Please share your opinion with me.
posted 7 years ago
This is for thy messaging other than JMS. Though the MDB by default use the JMS, the specifications are designed to use any messaging systems other than JMS.