Download LPRD Handbook

Transcript
II.
Creating a Second GlassFish Domain
1. Open Windows Command Prompt via Start->Run->’cmd’
2. Change directory down to the GlassFish directory by typing:
cd c:\origins\Sun\SDK\bin [enter]
3. To check that domain1 is running:
a. Type “asadmin list-domains [enter]”
b. If domain 1 is operating properly, it should say “domain1 running”.
4. To create a new domain:
a. Type:
asadmin [enter]
And, then type:
create-domain --adminport 4949 --instanceport
9090 domain2 [enter]
b. It will ask for admin username and password. For admin we suggest ‘admin’. Enter the
credentials of your personal choice followed by enter (we suggest the same credentials
as were created in domain1). These credentials will be referred to in this installation
guide as your ‘GlassFish Admin Password for domain2’. MAKE SURE YOU REMEMBER
THESE CREDENTIALS AS THEY WILL BE NEEDED LATER.
18445