Federating additional WebSphere Commerce nodes
Federating any additional WebSphere Commerce nodes that you might have created allows you the option to manage multiple WebSphere Commerce instances from a single console. Review this information if your console environment will be used for managing multiple WebSphere Commerce instances.Prerequisite Ensure the following tasks are completed before completing the steps in this section:
To federate an additional WebSphere Commerce node into a deployment manager cell:
- On the WAS ND machine, start the deployment manager profile.
- AIX|Linux|Solaris|Windows:
- I5/OS:
- AIX|Linux|Solaris|Optional: Create the WAS non-root user and group if they do not already exist on the WebSphere Commerce node. Follow the instructions in the Creating required WAS users and groups section of the WebSphere Commerce Installation Guide.
- Before federating the WebSphere Commerce application server node into the deployment manager cell, set the SOAP connection timeout to 0. To adjust the SOAP timeout setting complete the following steps on the WebSphere Commerce node:
- Open the following file in a text editor:
WC_profiledir/properties/soap.client.props- Search for the com.ibm.SOAP.requestTimeout entry. Record the existing value, and change the value to 0. For example, com.ibm.SOAP.requestTimeout=0.
- AIX|Linux|Solaris|Windows:
- I5/OS:
- Save the file, and exit.
- Ensure that the system clock on your WebSphere Commerce node and your WAS ND node are synchronized within 5 minutes of each other and are set to the same time zone. If they are not, federation will fail.
- On the WebSphere Commerce node:
- AIX|Linux|Solaris|Log on as the non-root user.
- I5/OS|Start a QShell session by typing QSH at the i5/OS command prompt.
- Federate the WebSphere Commerce application server into the deployment manager cell by issuing the following command:
- AIX|Linux|Solaris|WC_profiledir/bin/addNode.sh deployment_manager_host_name SOAP_port -includeapps
- I5/OS:
WC_profiledir/bin/addNode deployment_manager_host_name SOAP_port -includeapps
- Windows: WC_profiledir/bin/addNode.bat deployment_manager_host_name SOAP_port -includeapps
Your WebSphere Commerce instance is stopped automatically during the federation process. The command is shown on multiple lines for display purposes only, enter the command on one line.
The variables and parameters in the command are defined as follows:
- WC_profiledir
- This directory is created for the WAS profile that is used by a WebSphere Commerce instance.
- deployment_manager_host_name
- This is the fully-qualified host name of the deployment manager node.
- SOAP_port
- This is the SOAP port on which the deployment manager listens. This port number is defined when creating the deployment manager profile. The default deployment manager port is 8879.
- -includeapps
When federating a WebSphere Commerce profile that contains a WebSphere Commerce instance, include this parameter to ensure that the WebSphere Commerce application (EAR) file is transferred to the new configuration.
AIX|Linux|Solaris|After federating a WebSphere Application Server profile, the node agent must be managed by the non-root user. For more information, refer to the following topic in the WAS Information Center:
- You must reset the SOAP connection timeout to the original value. To adjust the SOAP timeout setting complete the following steps on the WebSphere Commerce node:
- Open the following file in a text editor:
WC_profiledir/properties/soap.client.props- Search for the com.ibm.SOAP.requestTimeout entry. Reset the entry to the original value. For more information, refer to:
- AIX|Linux|Solaris|Windows:
- I5/OS:
- Save the file, and exit.
- If you are federating a profile that contains a WebSphere Commerce instance, recreate the cell level documents on your deployment manager node. To recreate these documents, complete the following steps on the WebSphere Commerce node:
- Ensure your WebSphere Commerce instance is started.
- This step is not required if you are adding a WAS node that does not contain WebSphere Commerce information
- AIX|Linux|Solaris: Switch to the WebSphere Commerce non-root user by running the following command in a terminal window: su - WC_non_root_user
- I5/OS:
Start a QShell session by typing QShell at the i5/OS command prompt.
- Run the following command:
AIX|Linux|
WC_installdir/bin/config_ant.sh -DinstanceName=instance ReconfigureCell
WC_installdir/bin/config_ant.sh -DinstanceName=instance ReconfigureCell
WC_installdir/bin/config_ant.bat -DinstanceName=instance ReconfigureCell
- If you had enabled security before you federated your WebSphere Commerce application, enable security again.
- If you had enabled automatic Web server configuration file (plugin-cfg.xml) propagation before federating, configure it again. Running the addNode command removes the Web server definition.
- If you are federating a non-WebSphere Commerce profile into the deployment manager cell:
- AIX|Linux|Solaris|Log on as the non-root user.
- I5/OS|Start a QShell session by typing QShell at the i5/OS command prompt.
- Federate the application server into the deployment manager cell by issuing the following command:
- AIX|Linux|Solaris|WAS_profiledir/bin/addNode.sh deployment_manager_host_name SOAP_port -includeapps
- I5/OS|WAS_profiledir/bin/addNode deployment_manager_host_name SOAP_port -includeapps
- Windows: WAS_profiledir/bin/addNode.bat deployment_manager_host_name SOAP_port -includeapps
The variables and parameters in the command are defined as follows:
- WAS_profiledir
- This directory is created for the WAS profile.
- deployment_manager_host_name
- This is the fully-qualified host name of the deployment manager node.
- SOAP_port
- This is the SOAP port on which the deployment manager listens. This port number is defined when creating the deployment manager profile. The default deployment manager port is 8879.
- -includeapps
When federating a WebSphere Commerce profile that contains a WebSphere Commerce instance, include this parameter to ensure that the WebSphere Commerce application (EAR) file is transferred to the new configuration.
- Regenerate the Webserver plug-in for your Web server.
- Log on the the WAS ND
Administration Console server.- Expand Servers > WebServers.
- Select webserver1 and click Generate Plug-in to generate the plugin-cfg.xml file for the Web server.
- Copy the updated plugin-cfg.xml file to your Web server machine:
- AIX|Linux|Solaris|Windows:
- I5/OS:
Communicating with Web servers
The updated plugin-cfg.xml file must be copied to the Remote_configdir/httpconf directory on the remote Web server machine. Where Remote_configdir is the Remote Configuration Directory specified during instance creation.
- Update the path to the plugin-cfg.xml file in the Web server configuration file on the WebSphere Commerce node agent. For more information refer to the WebSphere Commerce Installation Guide.
- Restart your Web server.