You can use a wizard to create
a message-driven bean with XDoclet annotation support.
Before you begin
Before you can create a message-driven
bean with XDoclet annotation support, you must:
Procedure
- In the Java™ EE perspective,
click . Select and click Next.
- Select the Message Driven Bean and
click Next.
- Select the Project that will contain
the new bean.
- In the Folder field, select the
folder for the new bean.
- In the Java package field, enter
the package name for the new bean.
- In the Class name field, type a
name for the enterprise bean. By convention, bean names begin with
an uppercase letter.
Note: You can use Unicode characters
for the bean name, but Unicode characters are not supported for enterprise
bean packages and classes associated with enterprise beans.
- Change the Superclass for the bean
if you want it to inherit from a class other than java.lang.Object and
click Next.
- Provide an EJB Name for the bean.
This is the name of the enterprise bean class.
- Provide a Destination JNDI Name for
the bean. This is a logical name used by the server to locate an enterprise
bean at runtime.
- Provide a Display Name for the bean.
This is a short name for the enterprise bean that is used by tools.
- Provide a text Description for the
bean.
- Select a Destination for the new
bean:
- Queue specifies that the point-to-point
JMS messaging model to be used.
- Topic specifies that the publish-and-subscribe
JMS messaging model to be used.
- Select a Transaction Type for the
new bean:
- Container specifies that the transaction
demarcation is performed by the container.
- Bean specifies that the transaction demarcation
is performed by the bean.
Click Next.
- Select the type of Modifiers to
use for the class.
- Optional: Select the Interfaces you
want the bean to implement. Click Add to select
interfaces that you want to implement and click Remove to
take away interfaces that you no longer want to implement.
- Select the method stubs that you want the wizard to create.
- Click Finish to add the new bean
to the specified EJB project.