The Java EE 6 Tutorial

ProcedureTo 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 Runtime tab.

  2. Right-click the Servers node and select Add Server. In the Add Server Instance dialog, follow these steps:

    1. Select GlassFish v3 (the default) from the Server list.

    2. In the Name field, specify a name slightly different from that of the local server, such as GlassFish v3 (2).

    3. Click Next.

    4. For the Server Location, you can either browse to the location of the GlassFish Server on the remote system or, if that location is not visible from the local system, use the default location on the local system.

    5. Click Next.

    6. Select the Register Remote Domain radio button.

    7. In the Host Name field, type the name of the remote system.

    8. Click Finish.

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. If you have already performed this task, you do not have to repeat it.