• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

mdb's onMessage() method

 
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
What are you doing in my house? Get 'em tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic