Software AG Products 10.5 | Administering Integration Server | Configuring Integration Server for JMS Messaging | Monitoring a Connection Factory Object for Changes | Polling for Changes
 
Polling for Changes
You can configure Integration Server to monitor a connection factory used by an active connection by polling the JNDI provider for changes. In this situation, Integration Server periodically compares the connection factory used to create the connection with the connection factory in the JNDI provider. If Integration Server detects a change, it refreshes the connection using the new connection factory definition automatically.
Two factors determine how frequently Integration Server polls the JNDI provider for changes to a connection factory object:
*The polling interval specified in the JMS connection alias. You set the polling interval when you create or edit the JMS connection alias. The minimum polling interval that you can specify is 1 minute. Alternatively, you can instruct Integration Server to use the refresh interval specified for the webMethods connection factory object.
*The connection monitoring period, which determines how frequently, Integration Server checks the status of active connections to the webMethods Broker. The connection monitoring period is determined by the watt.server.jms.connection.monitorPeriod configuration property.
When the connection monitoring period elapses, Integration Server checks the status of the JMS connection alias. Integration Server also compares the polling interval to the time elapsed since the last poll to determine whether to poll for changes to the cluster connection factory.
To ensure that Integration Server polls for connection factory changes at the specified interval, the polling interval value should be greater than or equal to the value of the watt.server.jms.connection.monitorPeriod property. If the value of the polling interval is less than the value of the watt.server.jms.connection.monitorPeriod property, Integration Server will not check for connection factory changes at the specified interval.
For example, suppose that a JMS connection alias specifies a polling interval of 1 minute and watt.server.jms.connection.monitorPeriod is set to 10 minutes. Because checking the polling interval and, if necessary, polling for changes, occurs only when Integration Server checks the connection, Integration Server polls the cluster connection factory for changes every 10 minutes.
Note:
If the connection between Integration Server and the webMethods Broker fails, Integration Server attempts to reconnect to the webMethods Broker at an interval determined by the watt.server.jms.connection.retryPeriod property. After Integration Server restores the connection, Integration Server polls immediately for changes to the cluster connection factory specified in the JMS connection alias.