• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
Your buns are mine! But you can have this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic