Running the Example

Before you can see your Message-driven bean working, there are a number of steps still to go through:

1.
Compile the bean.
2.
Use j2eeadmin or deploytool to create the message queue.
3.
Deploy the bean.
4.
Create a sender client to create a message.

Creating the Queue

The message bean is associated with a queue or topic at deployment time. This queue must already exist. To create a queue (or topic), do the following:

1.
Ensure that J2EE server is running.
2.
Use j2eeadmin or deploytool to create the message queue or a topic. To see the existing queues and topics, use the following:
j2eeadmin –listJMSDestination
or view the Destinations screen in deploytool. This is found by selecting Server Configuration from the ...

Get Sams Teach Yourself J2EE™ in 21 Days 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.