Registering a Sun Java System Application Server/GlassFish Instance

See Also

To begin developing enterprise applications you must first register an instance of the Sun Java System Application Server/GlassFish with the IDE.

If you deploy your applications to a remote instance of the Sun Java System Application Server/GlassFish, those libraries are available at runtime. However, during development, to compile your project you need a local instance of this server and libraries.

You can have multiple instances of the Sun Java System Application Server/GlassFish registered with the IDE, but you must first specify the local folder that contains the local installation of the server. You only need to specify the location of the local installation once.

To register an instance of the Sun Java System Application Server/GlassFish:

  1. Choose Tools > Servers.
  2. In the Servers dialog box, click Add Server to open the Add Server wizard.
  3. Select the server you want to register.
  4. Type a name for the server instance. This name is used to identify the server in the IDE.
  5. Click Next.
  6. Supply the platform location of the server.
  7. Select the type of domain you are registering.
  8. Click Finish to complete the Add Server Instance wizard. Alternatively, click Next if you want to enter a username and password for the domain.
  9. Click Close in the Servers dialog box.

Once a server instance is registered with the IDE, a node for the server instance is visible in the Services window under the Servers node. You can perform the following tasks by right-clicking the server instance node and choosing a task from the pop-up menu:

To remove an instance of the Java System Application Server/GlassFish:

  1. Choose Tools > Servers.
  2. In the Servers dialog box, select the server name in the left pane.
  3. Click Remove.
  4. Click Close.
See Also
Working With the Sun Java System Application Server/GlassFish

Legal Notices