Java Reference
In-Depth Information
10. Stop and restart the server on jupiter .
To Use Two Application Servers for the sendremote Example
If you are using NetBeans IDE, you need to add the remote server in order to deploy the
message-driven bean there. To do so, follow these steps.
1. In NetBeans IDE, click the Services tab.
2. Right-click the Servers node and select Add Server. In the Add Server In-
stance dialog, follow these steps:
a. Select GlassFish Server 3+ from the Server list.
b. In the Name field, specify a name slightly different from that of the local
server, such as GlassFish Server 3+ (2) .
c. Click Next.
d. For the Server Location, browse to the location of the GlassFish Server on
the remote system. This location must be visible from the local system.
e. Click Next.
f. Select the Register Remote Domain radio button.
g. In the Host Name field, type the name of the remote system.
h. Click Finish.
i. In the dialog that appears, enter the user name (admin) and the password
you created.
Next Steps
Before you can run the example, you must change the default name of
the JMS host on jupiter , as described in To Change the Default
Host Name Using the Administration Console on page 402 . If you
have already performed this task, you do not have to repeat it.
Running the sendremote Example
You can use either NetBeans IDE or Ant to build, package, deploy, and run the sendre-
mote example.
To Run the sendremote Example Using NetBeans IDE
1. To build the replybean module, follow these steps:
a. From the File menu, choose Open Project.
Search WWH ::




Custom Search