Previous Topic: Configure Salesforce.com Connector Session Timeout Values

Next Topic: Error message—Host did not Accept the Connection Within the Timeout of nnnn ms

Specify How Active Sessions are Validated

To minimize session timeouts, you can specify how active sessions are validated.

To minimize session timeouts

  1. If configuring Salesforce.com connector session time out values did not resolve your time out issues, we recommend that you first try specifying that the session is validated from time to time while idling in the pool.

    In connector.xml, set the following properties:

    testOnBorrow = false

    testWhileIdle= true

    This solution is less expensive in terms of API calls than specifying that a session is validated every time it is borrowed from the pool, and can resolve the issue.

  2. If the previous solution did not resolve the problem, try specifying that the session is validated every time it is borrowed from the pool. While this solution fixes the problem, this solution is rather expensive; as one additional API call is made each time the session is borrowed from the pool. A connection can be borrowed many times during a single operation on a user.

    In connector.xml, set the following properties:

    testOnBorrow = true

    testWhileIdle= false

    Note: We recommend that you do not set both properties to true, as this increases the number of API calls.

    Note: For more information about customizing the connector.xml file, see the Java Connector Server Implementation Guide.


Copyright © 2010 CA. All rights reserved. Email CA about this topic