background image

Running the sendremote Modules Using Ant

<< Output of the appclient Command | ant deploy Command >>
<< Output of the appclient Command | ant deploy Command >>

Running the sendremote Modules Using Ant

ReplyMsgBean: Received message: text: id=8 to remote app server
ReplyMsgBean: Received message: text: id=10 to remote app server
Undeploy the modules after you finish running the client. To undeploy the modules, perform
these steps:
1. Click the Runtime tab.
2. Expand the Servers node.
3. Expand the Sun Java System Application Servernode (the local system).
4. Expand the Applications node.
5. Expand the EJB Modules node.
6. Right-click replybean and choose Undeploy.
7. Expand the App Client Modules node.
8. Right-click multiclient and choose Undeploy.
9. Expand the Sun Java System Application Server (1) node (the remote system).
10. Expand the Applications node.
11. Expand the EJB Modules node.
12. Right-click replybean and choose Undeploy.
To remove the generated files, follow these steps:
1. Right-click the replybean project and choose Clean Project.
2. Right-click the multiclient project and choose Clean Project.
Building, Deploying, and Running the sendremote
Modules Using Ant
To package the modules, perform these steps:
1. Go to the following directory:
tut-install/javaeetutorial5/examples/jms/sendremote/multiclient/
2. Type the following command:
ant
This command creates a JAR file that contains the client class file and a manifest file.
3. Change to the directory replybean:
cd ../replybean
4. Type the following command:
ant
This command creates a JAR file that contains the bean class file.
An Application Example That Deploys a Message-Driven Bean on Two Servers
The Java EE 5 Tutorial · September 2007
992