Alert readers might have noticed that the autodeploy directory is under a domains/domain1 subdirectory. GlassFish has a concept of domains. Domains allow a collection of related applications to be deployed together. Several domains can be started concurrently. GlassFish domains behave like individual GlassFish instances, a default domain called domain1 is created when installing GlassFish.
GlassFish domains
Creating domains
Additional domains can be created from the command line by issuing the following command:
asadmin create-domain domainname
The preceding command takes several parameters to specify ports where the domain will listen for several services (HTTP, Admin, JMS, IIOP, secure HTTP, and so on); type the following...