O'Reilly logo

Borland® JBuilder™ Developer’s Guide by Jeff Swisher, Saleem Siddiqui, Michael Landy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required