Sun Java System Application Server Enterprise Edition 8.2 Administration Guide

Creating an Instance

A server instance is created using the create-instance command. The following example creates an instance named myinstance. The administration server host is myhost, the administration server port is 1234, and the administrative username is admin. The command prompts for the administrative passwords.

The following example creates a clustered server instance named myinstance. The command prompts for the administrative passwords.


$ asadmin create-instance --host myhost --port 1234 
--user admin --cluster mycluster --nodeagent mynodeagent myinstance

myhost is the administrative server host, the administrative port is 1234, the administrative username is admin, the cluster this server instance belongs to is mycluster, the node agent managing this server instance is mynodeagent.

For the full syntax, type asadmin help create-instance.

To create a standalone server instance do not specify the --cluster option.

The following example creates a standalone server instance named myinstance managed by the node agent named mynodeagent.


$ asadmin create-instance --host myhost --port 1234 
--user admin --nodeagent mynodeagent myinstance