O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

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

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

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