A server template is used to define the configuration settings for a new application server. When you create a new application server, you either select the default server template or a template you previously created, that is based on another, already existing application server. The default template is used if you do not specify a different template when you create the server.
You can also use the createApplicationServerTemplate command for the AdminTask object to create a server template.
AdminTask.createApplicationServer('<node_name>', '[-name server_name -templateName template_name ]')
where <node_name> is the node to which you are adding the new application server, server_name is the name of the application server you are creating, and template_name is the name of the server template you are using to create the new application server.
AdminTask.exportServer('[-archive c:/temp/templateExport.car -nodeName <node_name> -serverName server_name]')
- AdminTask.importServer('[-archive c:/temp/templateExport.car -nodeName <node_name> -serverInArchive server_name]')
The server server_name now resides on the target system with unique ports. If you need to change the assigned ports, in the administrative console, click
, and then click Communications > ports.The new template has the starting ports as defined in tmpServer. The tmpServer server name can now be deleted, as can the initial template1 template if it is not needed.