What is significance of "WebFortpool.TestOnBorrow" parameter in AFM (Arcot Flow Manager) and restapi.properties?
TestOnBorrow parameter can be set as true or false via arcotafm.properties file (for AFM flows) and via resapi.properties (for REST API).
TestOnBorrow allows configuring for a connection pool validation in CA Strong Authentication's AFM component, when making every new connection to Webfort If the TestOnBorrow=true is set then every connection that is borrowed from a pool is tested first before use.
Essentially, TestOnBorrow when set as true via arcotafm.properties, AFM when making a connection with CA Strong Authentication Server will reach out to the CA Strong Authentication Server's connection pool to get a connection. This connection will be tested, if ithe test fails fails then the corrupted pool is destroyed and a new connection pool will be created. If the TestOnBorrow is set to false then the connection is not tested . This validation and recreating of a new pool leads to robust tested connections being used but such validation will add to some processing overhead.
More information can be found here related to this parameter. Here is the link -- Apache Common Configuration