File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Message Type Support in MDB

 
Ravi Bansal
Ranch Hand
Posts: 86
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB 3.1 Spec Section 5.4.2

The message-driven bean class’s implementation of the javax.jms.MessageListenerinterface distinguishes the message-driven bean as a JMS message-driven bean.


This means that MDB also supports non-JMS messages (means other than JMS message types) depending on listener interface it implements . Can anyone give any example of such interface.?
I checked many references and seems that all of them are in context of processing JMS messages.

From the same section of Spec , there is another qoute

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.


Again, I could not find any example of message listener interface which has more than message listener method. Can anyone explain this by some example ?

Thanks in Advance
 
Gauri Chiplunkar
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found one example. Please check -

http://www.mastertheboss.com/jboss-quartz/developing-quartz-mdb
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic