The task of writing a message-driven bean is simplified, in comparison to a JMS implementation, in that you only create a bean class. This message-driven bean does not have either a remote/local home or remote/local interface, but it is communicated to by a publisher via a message. The following tasks are required to build a message-driven bean:
Create a class that implements the javax.ejb.MessageDrivenBean interface.
Implement the javax.jms.MessageListener interface.
Create a public constructor that contains no arguments.
Implement the ejbCreate() method taking no arguments. This method should be declared as public. Its return type must be void, and it must declare any application exceptions. ...