my dog learned polymorphism*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes how to understand this regarding multiple message listener method? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "how to understand this regarding multiple message listener method?" Watch "how to understand this regarding multiple message listener method?" New topic
Author

how to understand this regarding multiple message listener method?

Helen Ge
Ranch Hand

Joined: May 24, 2005
Posts: 68
Hi friends,

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.

thanks


SCJP,SCWCD,SCDJWS,SCBCD
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
Hi,

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.

Thanks


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to understand this regarding multiple message listener method?
 
Similar Threads
mockexam question.
Message Driven Beans
instantiating interface
can there be MDB without onMessage method
Message listener interface of a Message-Driven Bean?