• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MDB

 
Nikhil Jain
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does the below lines mean?

If the message-driven bean class implements more than one interface other than java.io.Serializable, java.io.Externalizable, or any of the interfaces defined by the javax.ejb package, the message listener interface must be specified by the messageListenerInterface element of the MessageDriven annotation or the messaging-type element of the message-driven deployment descriptor element.
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I the MDB you are writing implements more than two interfaces, you have to identify which interface you are using for messaging. Other interfaces can be use for inheritance purpose. The method defined in the interface which you identified as message listener interface will be called which the MDB instance receive the message delivery.

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