To begin developing enterprise applications you must first register an instance of the
GlassFish Server with the IDE.
If you deploy your applications to a remote instance of the
application server, 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 register multiple domain instances and Domain Administration Server (DAS) instances
of the GlassFish application server 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 GlassFish Server:
Choose Tools > Servers.
In the Servers dialog box, click Add Server to open the Add Server wizard.
Alternatively, right-click the Servers node in the Services window and choose
Add Server.
Select the server you want to register.
Type a name for the server instance. This name is used to identify the server in the IDE.
Click Next.
Supply the platform location of the server.
Select the type of domain you are registering.
If you are registering the local default domain, the available domains are listed in the drop-down list.
If you are registering a remote domain, you need to specify the host and port used to communicate with the remote domain.
Click Finish to complete the Add Server Instance wizard.
If you are registering an instance of the server that was installed with the IDE,
the default username is admin. There is no password.
Click Close in the Servers dialog box.
After 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:
Start and stop a server instance
Remove an instance of the server
Open the server's admin console in a browser
View the server log file
View the properties of the server
Contact the GlassFish Update Center to check for available software and server updates
To remove an instance of the server:
Choose Tools > Servers.
In the Servers dialog box, select the server name in the left pane.
Click Remove.
Click Close.
Alternatively, in the Services window right-click the server instance you want to remove and
choose Remove from the pop-up menu.
For more about the clustering capabilities of GlassFish version 3.1, see:
For more about administration of Oracle GlassFish Server, see: