Parameter: queryhashcode

Startup parameters change the behavior of the server.

Parameter

queryhashcode:hostname:port

Description

This parameter enables all Service Manager processes to consistently generate a unique hash code, which can be accepted and properly decoded by the web tier. If you provide the Fully Qualified Domain Name (FQDN) of a server host in the web.xml file, you need to provide the same value in this parameter.

The value of this parameter should be the same on all your horizontally-scaled systems.

Note The value of this parameter is used only when the querysecurity parameter is enabled..

Valid if set from

Command line

Initialization file (sm.ini)

Requires restart of server?

All new connections will take the new value.

Sessions which are already running will continue to use the old value. In this case, we recommend restarting the server.

Default value

None

Possible values

A valid Service Manager hostname and communication port

Example usage

If no FQDN is specified in the web.xml, the following example is valid:

No FQDN provided in web.xml:

<serverhost>hostname</serverhost>
  <serverport>13080</serverport>

Enter the following in the Initialization (sm.ini) file:

queryhashcode:hostname:13080

When the FQDN of a server host is provided in the web.xml file, you need to provide the same value in this parameter, as follows:

FQDN provided in web.xml:

<serverhost>hostname.com</serverhost>
  <server port>13080</serverport>


Enter the following in the Initialization (sm.ini) file:

queryhashcode:hostname.com:13080

Note You only need to provide one entry in the sm.ini file.

Related topics

System parameters
Enter a parameter in the sm.ini file
Servlet parameters
Parameter: querysecurity