Following are the rules for writing a message-driven bean class:
- It must be declared public, non-abstract, and non-final.
- It must implement the MessageDrivenBean and MessageListener interfaces.
- It must contain the implementation for the ejbCreate(), ejbRemove(), setMessageDrivenContext(), and onMessage() methods.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
