A custom template enables you to customize the configuration of any domain that you create from the template.
For more information, see To Create a Domain.
Your configuration changes will be included in the template that you create from the domain.
A domain's domain.xml file is located in the domain-dir/config directory.
Each token is identified as %%%token-name%%%, where token-name is one of the following names:
Represents the port number of the HTTP port or the HTTPS port for administration. This token is replaced with one of the following values in the command to create a domain from the template:
The value of the --adminport option
The value of the domain.adminPort property
Represents the name of the configuration that is created for the domain that is being created. This token is replaced with the string server-config.
Represents the name of the domain that is being created. This token is replaced with the operand of create-domain subcommand.
Represents the name of the host on which the domain is being created. This token is replaced with the fully qualified host name of the host where the domain is being created.
Represents the port number of the port that is used to listen for HTTP requests. This token is replaced with one of the following values in the command to create a domain from the template:
The value of the --instanceport option
A value that the create-domain subcommand calculates from the value of the --portbase option
The value of the domain.instancePort property
Represents the port number of the port that is used to listen for secure HTTP requests. This token is replaced with one of the following values in the command to create a domain from the template:
A value that the create-domain subcommand calculates from the value of the --portbase option
The value of the http.ssl.port property
Represents the port number of the port that is used for connections to the Java Platform Debugger Architecture (JPDA) debugger. This token is replaced with one of the following values in the command to create a domain from the template:
A value that the create-domain subcommand calculates from the value of the --portbase option
The value of the java.debugger.port property
Represents the port number for the Java Message Service provider. This token is replaced with one of the following values in the command to create a domain from the template:
A value that the create-domain subcommand calculates from the value of the --portbase option
The value of the jms.port property
Represents the port number on which the JMX connector listens. This token is replaced with one of the following values in the command to create a domain from the template:
A value that the create-domain subcommand calculates from the value of the --portbase option
The value of the domain.jmxPort property
Represents the port number of the port that is used for IIOP connections. This token is replaced with one of the following values in the command to create a domain from the template:
A value that the create-domain subcommand calculates from the value of the --portbase option
The value of the orb.listener.port property
Represents the port number of the port that is used for secure IIOP connections with client authentication. This token is replaced with one of the following values in the command to create a domain from the template:
A value that the create-domain subcommand calculates from the value of the --portbase option
The value of the orb.mutualauth.port property
Represents the port number of the port that is used for secure IIOP connections. This token is replaced with one of the following values in the command to create a domain from the template:
A value that the create-domain subcommand calculates from the value of the --portbase option
The value of the orb.ssl.port property
Represents the port number of the port that is used for connections to the Apache Felix Remote Shell. This shell uses the Felix shell service to interact with the OSGi module management subsystem. This token is replaced with one of the following values in the command to create a domain from the template:
A value that the create-domain subcommand calculates from the value of the --portbase option
The value of the osgi.shell.telnet.port property
Represents the name of the DAS for the domain that is being created. This token is replaced with the string server.
Tip - For information about how these tokens are used in the default template, examine the as-install/lib/templates/domain.xml file.
In the command to create the domain, pass the name of file that you edited in the previous step as the --template option of the create-domain(1) subcommand.
Use the verify-domain-xml(1) subcommand for this purpose.
Information about the options for this subcommand is included in the subcommand's help page.
You can also view the full syntax and options of the subcommands by typing the following commands at the command line.
asadmin help create-domain
asadmin help verify-domain-xml