deploytool Tips for Message-Driven Beans

Chapter 2 covered the basic steps for building and packaging enterprise beans. This section describes the tasks in deploytool that are necessary for message-driven beans. To view an example in deploytool, open the j 2eetutorial/examples/ears/SimpleMessageApp.ear file and select SimpleMessageEJB from the tree view.

Specifying the Bean’s Type and Transaction Management

You specify the type when you create the bean with the New Enterprise Bean wizard.

1.
To start the wizard, select File→New→Enterprise Bean.
2.
In the General dialog box of the wizard, select the Message-Driven radio button.
3.
In the Transaction Management dialog box, you may select either the Container-Managed or Bean-Managed radio ...

Get J2EE™ Tutorial, The 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.