In a multiple cell environment you might want to use the
same HTTP server to send and receive HTTP and HTTPS requests for multiple
cells. To accomplish this setup, you must merge the web server plug-in
configuration files that are being used by the application servers
in those cells into a single web server plug-in configuration file.
About this task
You can use the following different
configurations of the application server to combine the plug-in configuration
files of multiple WebSphere® Application Server Network Deployment cells
into a single configuration file.
This technique can also be
employed to merge all of the web server plug-in configuration files
into a single configuration file when you are migrating to a new release
of the product and need to route traffic to multiple cells running
an older version of WebSphere Application Server Network Deployment as
well as the new version.
To create a single plug-in configuration
file for all of your cells, you must first create a separate plug-in
configuration file for each of the cells, and then combine these files
into a single configuration file. The web server plug-in for each
cell then uses the same web server plug-in configuration file.
Complete
the following steps to merge multiple web server plug-in configuration
files into a single configuration file.
Procedure
- Use either the GenPluginCfg script, the administrative
console, or wsadmin scripting to generate the plugin-cfg.xml file
for each cell.
See the topic GenPluginCfg command for
a description of how to use the GenPluginCfg script to generate the plugin-cfg.xml file.
See
the topic Implementing a web server plug-in for a description
of how to use the administrative console to generate the plugin-cfg.xml file.
See
the topic Regenerating the node plug-in configuration using
scripting for a description of how to use wsadmin scripting
to generate the plugin-cfg.xml file.
- Merge the plugin-cfg.xml files from
multiple application server cells.
You can either manually
merge the plugin-cfg.xml files or use the pluginCfgMerge
tool to automatically merge the plugin-cfg.xml file
from multiple application server profiles into a single output file.
The pluginCfgMerge.bat and pluginCfgMerge.sh files
are located in the install_root/bin directory.
For more information about manually merging the plugin-cfg.xml files,
see the technote on merging plugin-cfg.xml files
from multiple application server profiles.
- Ensure that the cloneID value for each application server
is unique.
Examine the cloneID value for each application
server in the merged file to ensure that this value is unique for
each application server. If the cloneID values in the merged file
are not all unique, or if you are running with memory to memory session
replication in peer to peer mode, use wsadmin scripting or the administrative
console to configure unique HTTP session cloneIDs.
To use wsadmin
commands for the Jython or Jacl programming language, see the documentation
on configuring a unique HTTP session clone ID for each application
server using scripting.
To configure a unique HTTP session
clone ID using the administrative console, complete the following
steps:
- Click Servers > Server Types > WebSphere
application servers > server_name.
- Under Container Settings, click Web Container
Settings > Web container.
- Under Additional Properties, click Custom
properties > New.
- Enter HttpSessionCloneId in the Name field,
and a unique value for the server in the Value field.
The unique value must be 8 - 9 alphanumeric characters in
length. For example, test1234 is a valid cloneID value.
- Click Apply or OK.
- Click Save to save the configuration
changes to the master configuration.
- Copy the merged plugin-cfg.xml file
to the plugin_installation_root/config/web_server_name/ directory
on the web server host.
Results
When you complete this process, you have one plug-in configuration
file for multiple application server cells, and can use the same HTTP
server to handle HTTP and HTTPS requests for multiple cells.