You can use scripting and the wsadmin tool to configuring
a unique HTTP session clone ID for each application server.
About this task
Perform the following steps to configure a unique HTTP
session clone ID for each application server. Within these steps,
the following variables apply to the Jython and Jacl commands:
- node_name is the affected node within your
configuration.
- server_name is the affected server within your
configuration.
- cell_name is the affected cell within your
configuration.
- unique_value is 8 to 9 unique alphanumeric
characters. For example, test1234.
Procedure
- Retrieve the node name and server name values. Assign those
two values to the server variable.
Using Jacl:
set server [$AdminConfig getid /Node:node_name/Server:server_name/]
Example
output:
server_name(cells/cell_name/nodes/node_name/servers/
server_name|server.xml#Server_1265038035855)
Using Jython:
server = AdminConfig.getid('/Node:node_name/Server:server_name/')
Example
output: None
- Retrieve the name of the web container, which is associated
with the node and server values that are identified in the previous
step, and assign the value to the wc variable.
Using Jacl:
set wc [$AdminConfig list WebContainer $server]
Example
output:
(cells/cell_name/nodes/node_name/servers/server_name
|server.xml#WebContainer_1265038035855)
Using Jython:
wc = AdminConfig.list('WebContainer', server)
Example
output: None
- Create the HTTPSessionCloneId custom property using the
node, server, and web container values that were assigned in the previous
steps.
Using Jacl:
$AdminConfig create Property $wc {{name "HttpSessionCloneId"} {description ""}
{value "value"} {required "false"}}
Example
output:
HttpSessionCloneId(cells/cell_name/nodes/node_name/servers/
server_name|server.xml#Property_1265840905884)
Using Jython:
AdminConfig.create('Property', wc, '[[validationExpression ""][name "HttpSessionCloneId"]
[description ""][value "value"][required "false"]]')
Example
output:
'HttpSessionCloneId(cells/cell_name/nodes/node_name/servers/
server_name|server.xml#Property_1265841318634)'
- Save the configuration changes. For more information, see
the documentation on saving configuration changes with the wsadmin
tool.