Creating Templates and Domains Using the pack and unpack Commands
This document describes how to use the pack
and unpack
commands to create templates and domains.
Topics in this section include:
BEA provides several tools for creating domains and templates: the Configuration Wizard, the Domain Template Builder, WLST Offline, and the pack
and unpack
commands. The pack
and 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.
This section provides the following topics:
On both Windows and UNIX systems, pack
and unpack
are installed in the \common\bin
subdirectory of the product installation directory, for example C:\bea\weblogic90\common\bin
.
The 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.unpack
to 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.
The 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:
Using 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.
Note: You cannot use unpack
to extend an existing domain.
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 pack
and 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:
pack
command, you can create a domain template from an existing domain. A domain template is used to create a new domain. pack
command, with the -managed=true
option. Subsequently, when you use the Managed Server template with the unpack
command, 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. Note: The 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 config.xml
file.
Your BEA software provides several tools for creating templates and domains. The pack
and 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.
|
|
|