Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Administration Guide

Creating a Domain

Domains are created using the create-domain command. The following example command creates a domain named mydomain. The administration server listens on port 1234 and the administrative user name is hanan. The command prompts for the administrative and master passwords.

$ asadmin create-domain --adminport 80 --adminuser hanan mydomain

To start the Admin Console for mydomain domain, in a browser, enter the following URL:


For the preceding create-domain example, the domain’s log files, configuration files, and deployed applications now reside in the following directory:


To create the domain’s directory in another location, specify the --domaindir option. For the full syntax of the command, type asadmin help create-domain.