Software >> Middleware >> Oracle Glassfish Server >> 3.1 >> How to customise my Oracle Glassfish Server 3.1 environment

logged on as root and installed on /app/glassfish3 with sample domain named domain1

domain name : domain1

domain home : /app/glassfish3/glassfish/domains/domain1

admin port: 4848

# groupadd ogs

# useradd -d /app/glassfish3/glassfish/domains/domain1 -g ogs -c "Glassfish domain domain1" domain1

# chown -R root:ogs /app/glassfish3

# chmod -R g+w /app/glassfish3

chown -R domain1:ogs /app/glassfish3/glassfish/domains/domain1

login to admin http://localhost:4848

From the navigation tree, select "Standalone Instances"

On the right hand pane, under Server Instances, click "New"

name the instance as "domain1"

if write access have been given to the account running the admin instance, a new directory named nodes will be created in /app/glassfish3/glassfish/ for the first instance creation