Java Reference
In-Depth Information
asadmin deploy --retrieve . jupiterclient.jar
This command deploys the client JAR file and retrieves the client stubs in a file
named jupiterclientClient.jar
d. To run the client, use the following command:
appclient -client jupiterclientClient.jar
On jupiter , the output of the appclient command looks like this (pre-
ceded by application client container output):
Click here to view code image
Sending message: This is message 1 from jupiterclient
Sending message: This is message 2 from jupiterclient
Sending message: This is message 3 from jupiterclient
On earth , the output in the server log looks something like this (preceded by
logging information):
Click here to view code image
MESSAGE BEAN: Message received: This is message 1 from
jupiterclient
MESSAGE BEAN: Message received: This is message 2 from
jupiterclient
MESSAGE BEAN: Message received: This is message 3 from
jupiterclient
e. To undeploy the client after you finish running it, use the following com-
mand:
asadmin undeploy jupiterclient
To Run the consumeremote Example Using Ant
To edit the message-driven bean source file and then package, deploy, and run the modules
using Ant, follow these steps.
1. Open the following file in an editor:
tut-install /examples/jms/consumeremote/earthmdb/src/java/
mdb/MessageBean.java
2. Find the following line within the @MessageDriven annotation:
Search WWH ::




Custom Search