After you have added new managed servers to your P6 EPPM cluster and modified the WSM Policy Manager, you need to copy the domain to your new machines. WebLogic offers two command-line utilities for this process. The pack
command creates a template that contains a snapshot of your domain. The unpack
command uses this template to re-create a domain that contains the packaged applications. For more information on using pack
and unpack
, see the WebLogic documentation.
To copy the P6 EPPM domain:
- Navigate to the
<WebLogic_Home>/wlserver/common/bin
of the machine on which you created the initial P6 EPPM domain. - Depending on your operating system, complete the following:
- For Windows, run:
pack.cmd -managed=true –domain=<Domain_Path> -template=<Template_Location>\Clustered_Domain.jar -template_name=”Clustered_Domain”
- For Unix, run:
pack.sh -managed=true –domain=<Domain_Path> -template=<Template_Location>/Clustered_Domain.jar -template_name=”Clustered_Domain”
Where:
- <Domain_Path> is the full path to the P6 EPPM domain. For example, <WebLogic_Home>\user_projects\domains\<P6_EPPM_Domain>.
- <Template_Location> is the full path where P6 EPPM Web Services creates the template. For example, C:\oracle\user_templates.
- Copy the
Clustered_Domain.jar
file from <Template_Location> to the machines on which you have created additional servers. - Navigate to
<WebLogic_Home>/wlsever/common/bin
. - Depending on your operating system, compete the following:
- For Windows, run:
Unpack.cmd –template=<Copy_Location>/Clustered_Domain.jar –domain=<WebLogic_Home>/user_projects/domains/Clustered_Domain
- For Unix, run:
Unpack.sh –template=<Copy_Location>/Clustered_Domain.jar –domain=<WebLogic_Home>/user_projects/domains/Clustered_Domain
Where:
- <Copy_Location> is the path to where you copied the
Clustered_Domain.jar
file. For example, C:\temp. - <WebLogic_Home> is the WebLogic home directory. The default is Oracle/Middleware/Oracle_Home.
- Repeat these steps for each clustered server.