Java Reference
In-Depth Information
ReplyListener: Received message: id=10, text=ReplyMsgBean pro-
cessed message:
text: id=10 to remote app server
Waiting for 0 message(s) from local app server
Waiting for 0 message(s) from remote app server
Finished
Closing connection 1
Closing connection 2
On the local system, where the message-driven bean receives the odd-numbered
messages, the output in the server log looks like this (wrapped in logging informa-
tion):
Click here to view code image
ReplyMsgBean: Received message: text: id=1 to local app server
ReplyMsgBean: Received message: text: id=3 to local app server
ReplyMsgBean: Received message: text: id=5 to local app server
ReplyMsgBean: Received message: text: id=7 to local app server
ReplyMsgBean: Received message: text: id=9 to local app server
On the remote system, where the bean receives the even-numbered messages, the
output in the server log looks like this (wrapped in logging information):
Click here to view code image
ReplyMsgBean: Received message: text: id=2 to remote app server
ReplyMsgBean: Received message: text: id=4 to remote app server
ReplyMsgBean: Received message: text: id=6 to remote app server
ReplyMsgBean: Received message: text: id=8 to remote app server
ReplyMsgBean: Received message: text: id=10 to remote app server
To Disable Deployment on the Remote System
After running this example, you will probably want to return the GlassFish Server on
jupiter to its previous state of not requiring a user name and password for administra-
tion.
1. From a command prompt on the remote system ( jupiter ), enter the follow-
ing command:
asadmin disable-secure-admin
You will need to type the administration user name and password.
2. Stop and restart the GlassFish Server on jupiter .
Search WWH ::




Custom Search