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