8.3. Deploying and Running the Application

Deploying and running this application involve several steps:

1.
Adding the server, if necessary
2.
Deploying the application
3.
Running the client
4.
Undeploying the application
5.
Removing the application and stopping the server

8.3.1. Adding the Server

Before you can deploy the application, you must make available to the deploytool the J2EE server you started in Section 8.2.1 on page 109. Because you started the J2EE server before you started the deploytool, the server, named localhost, probably appears in the tree under Servers. If it does not, do the following.

1.
From the File menu, choose Add Server.
2.
In the Add Server dialog box, enter localhost in the Server Name field.
3.
Click ...

Get Java™ Message Service API Tutorial and Reference: Messaging for the J2EE™ Platform 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.