This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mdb's onMessage() method

 
mallika shah
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

waned to clarify this point :
the specs say:
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.

does that mean we can have any number of "onMessage()" methods in a jms message driven bean?

I m very new to enterprise beans so i know the questions i am asking are very basic. but wanted to clear them

thanks,
mallika
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The onMessage() method is specific to JMS messaging. The quotes in the specs talk about general about message listeners. In case you are not using the JMS messaging, the MBD still support other type of messaging and it may have different methods according to messaging API used by messaging system and this interface can provide more that one method.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic