Java Reference
In-Depth Information
sumeremote/jupiterclient/ directory on the remote system and
type the following command:
ant add-resources
b. Go to the directory on the remote system ( jupiter ) where you copied the
client JAR file.
c. To deploy the client module and retrieve the client stubs, use the following
command:
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
Search WWH ::




Custom Search