Sun Microsystems Logo
Products and Services
Support and Training

A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  
User Commandscreate-domain(1)


 create-domain - creates a domain with the given name


 create-domain [ --domaindir install_dir/domains ] [ --passwordfile filename ] [ --terse=false ] [ --echo=false ] [ --interactive=false ] --adminport port_number --adminuser admin_user [ --adminpassword password ] [ --instanceport 8080 ] [ --domainproperties (name=value)[ :name=value ]* ] domain_name



create-domain creates a domain with the specified administration port number, administration user, administration password, and domain name. By creating a domain, an administration server is created in a directory named as the domain name. This command is supported in local mode only.

If a user creates a domain in a non-default directory, the domain will not be automatically shutdown during uninstallation.


directory where the domain is to be created. If specified, path must be accessible in the filesystem. If not specified, the domain is created in the default install_dir/domains directory.
file containing the domain application server password in the following form: AS_ADMIN_PASSWORD=password. Where password is the actual administrator password for the domain.
indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-formatted data for consumption by a script. Default is false.
setting to true will echo the command line statement on to the standard output. Default is false.
if set to true (default), only the required options are prompted.
port number of the domain application server listening for the administration requests.
administrative username for the specified domain.
password to administer the domain application server.
port number of the http listener. The port number cannot be currently in use.
list of the property name/value pairs for the domain to be created separated by the ":" character. The property value assignment character is =. Valid property names are: jms.port, orb.listener.port, http.ssl.port, orb.ssl.port, orb.mutualauth.port. Valid values are: http.ssl.port=1043:orb.ssl.port=1060:orb.mutualauth.port=1061:jms.port=7676.


name of the domain. Must be a unique name.


 Example 1. Using create-domain
asadmin> create-domain --domaindir /export/domains 
--adminport 7070 --adminuser admin --adminpassword adminadmin 
--instanceport 7071 sampleDomain
created domain sampleDomain successfully

Where: the sampleDomain domain is created in the /export/domains directory.


command executed successfully
error in executing the command



delete-domain(1), start-domain(1), stop-domain(1), , list-domains(1)

J2EE 1.4 SDKGo To TopLast Changed March 2004