Commit 11749b1d authored by Sunil Kumar's avatar Sunil Kumar

updated so as to reconnect after server side timout

parent 60be63d6
......@@ -143,7 +143,7 @@ public class PoolManager
if(null == sharedConns) // No we need to rebind an available
{
// If there are no available sharedConns wait for one.
if(0 == availableListOfSharedConnections.size())
while(0 == availableListOfSharedConnections.size())
{
// Wait for available Instances
availableListOfSharedConnections.wait();
......@@ -163,7 +163,7 @@ public class PoolManager
conn.setInUse();
}
// Do we need to rebind? Bind will do a connect if needed
if(needToBind)
if(needToBind || !conn.isConnectionAlive())
{
try
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment