Server Instance

The Sun ONE Application Server can have multiple Sun ONE Application Server instances. Each application server instance has its own configuration, resources, and application deployment areas that are independent of other application server instances. If you change the configuration for one application server instance, the configurations of other application server instances are not affected.

note  Sun ONE Application Server creates one application server instance, called server1, during the installation. For many users, one application server instance meets their needs. However, depending upon your environment, you might want to create one or more additional application server instances. For example, in a development environment you can use different application server instances to test different Sun ONE Application Server configurations, or to compare and test different application deployments. Because you can easily add or delete an application server instance, you can use them to create temporary “sandbox” areas to experiment with while developing.

Creating an Application Server Instance

To create a new application server instance:

  1. In the Explorer's Runtime tab, expand the Server Registry and expand Installed Servers and expand Sun ONE Application Server 7 node.

    note  If you do not see any Administration Server nodes, the Administration Server of the Sun ONE Application Server must be added under the Installed Servers subnode of the Server Registry node. See here for more information.

  2. Right-click the Administration Server node and choose Create a Server Instance. The Enter Server Instance Values dialog box opens.
  3. Type a name for the application server instance in the Server Instance Name field.
  4. Type the port number of the application server instance in the Server Instance Port field.
  5. Click OK. The new application server instance is created under the Administration Server node.

Deleting an Application Server Instance

To delete an application server instance:

  1. In the Explorer's Runtime tab, expand the Server Registry and expand Installed Servers and expand Sun ONE Application Server 7 and expand Administration Server node.

  2. Select the application server instance and choose Delete. The Confirm Object Deletion dialog box appears.
  3. Click Yes. The application server instance is now removed from the Administration Server node.

Setting as Default

To set this application server instance as the default application server for all J2EE applications deployed from the IDE:

  1. Right-click the server instance node and choose Set As Default.
  2. To verify that the application server instance is set as the default application server, expand Server Registry node and its Default Servers node. The application server instance should be displayed in the labels for the J2EE Applications node and the Web Tier Applications node.

Applying Changes

To apply changes made to the application server instance, right-click the server instance node and choose Apply Changes. For some changes, you might also have to restart the application server instance before the new settings can take an effect.

Refreshing the List

To update the information of the server instance node with the latest setting right-click the server instance node and choose Refresh List.

Starting an Application Server Instance

To start an application server instance:

  1. Right-click the server instance node and choose Status. The Server Status dialog box opens.
  2. Click Start Server Instance.
  3. Wait a few seconds while the application server instance initializes. When the application server instance is ready, the Stop Server Instance button becomes enabled.
  4. Click OK.

Stopping an Application Server Instance

To stop an application server instance:

  1. Right-click the server instance node and choose Status. The Server Status dialog box opens.
  2. Click Stop Server Instance.
  3. Click OK.

Server Event Log

The Sun ONE Application Server maintains a server event log. To view the log, right-click the server instance node and choose View server log. In the output window, the server event log is displayed.

Server Access Log

The Sun ONE Application Server maintains a server access log. To view the log, right-click the server instance node and choose View access log. In the output window, the server access log is displayed.


See also
   Server Instance Node Property Sheet
Administration Server
Registering a Resource
JDBC Connection Pools
JDBC Data Sources
JMS Resources
Persistence Managers
Java Mail Resources
Deployed Web Modules Node
Deployed EJB Modules Node
Deployed Connector Modules Node
Deployed Applications Node
Setting Sun ONE Application Server as the Default Server

Legal Notices