Writing a Message-Driven Bean
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:
1. |
Create a class that implements the javax.ejb.MessageDrivenBean interface.
|
2. |
Implement the javax.jms.MessageListener interface.
|
3. |
Create a public constructor that contains no arguments.
|
4. |
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. ... |
Get Borland® JBuilder™ Developer’s Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.