O'Reilly logo

J2EE™ Tutorial, The by Beth Stearns, Monica Pawlan, Eric Jendrock, Kim Haase, Dale Green, Stephanie Bodoff

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 SimpleMessageEJB Example

Starting the J2EE Server

To view the output of the message-driven bean, you must start the server in verbose mode:

j2ee -verbose 

Creating the Queue

1.
Create the queue with the j2eeadmin command:
j2eeadmin -addJmsDestination jms/MyQueue queue 
2.
Verify that the queue was created:
j2eeadmin -listJmsDestination 

Deploying the Application

1.
In deploytool, open the j2eetutorial/examples/ears/SimpleMessageApp.ear file (File→Open).
2.
Deploy the SimpleMessageApp application (Tools→Deploy). In the Introduction dialog box, make sure that you select the Return Client JAR checkbox. For detailed instructions, see Deploying the J2EE Application (page 37).

Running the Client

1.
In a terminal window, ...

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