Creating Templates and Domains Using the pack and unpack Commands
BEA provides several tools for creating domains and templates: the Configuration Wizard, the Domain Template Builder, WLST Offline, and the
unpack commands. The
unpack commands provide a simple, one-step method for creating domains and templates from the command line. They do not, however, allow you to customize the contents of your domain or template in the same way as the other tools. For more information about creating templates and domains using the Configuration Wizard, the Domain Template Builder, or WLST Offline, see Additional Tools for Creating Templates and Domains.
pack command provides an alternative means for quickly creating a template from the command line in one simple step. Although the
pack command does not allow you to customize the contents of your template in the same way as the Domain Template Builder, it is a useful tool for quickly creating the following:
unpack, the Configuration Wizard, or WebLogic Scripting Tool (WLST) Offline.
unpackto create the Managed Server domain directory on the remote machine. For more information, see Creating and Starting a Managed Server on a Remote Machine: Main Steps.
For a complete description of the
pack command, see pack.
For additional information about the Domain Template Builder, the Configuration Wizard, or WLST, see Additional Tools for Creating Templates and Domains.
unpack command provides a one-step method for quickly creating a domain from an existing template using the default settings defined in the template. When creating a domain,
unpack does not provide the same customization options as the Configuration Wizard or WLST. However, if you use the
unpack command with a domain template, you can do the following:
unpack, you can also create a Managed Server domain directory using a Managed Server template created using the
pack command. Because a Managed Server uses the settings defined for the Administration Server, you cannot change the JDK or the start mode, add administrative users, or change the Administrator password.
For a complete description of the
unpack command, see unpack.
For additional information about the Configuration Wizard, Domain Template Builder, or WLST, see Additional Tools for Creating Templates and Domains.
When you are using
unpack, the term template refers to a Java Archive (JAR) file that contains the files and scripts required to create a domain.The types of templates that can be created by the
pack command and used by the
unpack command to create domains include:
packcommand, you can create a domain template from an existing domain. A domain template is used to create a new domain.
packcommand, with the
-managed=trueoption. Subsequently, when you use the Managed Server template with the
unpackcommand, the Managed Server domain directory that is created contains sufficient bootstrap information to start the Managed Server on the remote machine. You can start the Managed Server on the remote machine in either of two ways: using Node Manager, or using customized start scripts created when you unpacked the template on the remote machine.
config.xml file of the domain from which you are creating your template must contain Managed Server definitions that specify the IP address and port for the target remote machine. The Managed Server template that you create from that domain can only be used, with the
unpack command, on the specified remote machines to create Managed Server domain directories for the Managed Servers defined in the
Your BEA software provides several tools for creating templates and domains. The
unpack commands provide a one-step method for creating templates and domains. You can also use the tools defined in the following table to create templates and domains.