Hi,I’m a newer in tamino development. We’re making use of tamino poolmanager to get DB connection. But we found after some time, server hung when trying to fetch connection from the pool.The only solution is to restart the server, but you know in a product environment it’s impossible.
Our cod snippet is as follows:
if(_poolManager == null)
_poolManager = TConnectionPoolManager.getInstance();
if(_poolManager.hasPool(POOL_NAME))
{
System.out.println(“getting connection from pool:”+_poolManager);
_connection = _poolManager.getConnection(POOL_NAME);
System.out.println(“Done:got connection from pool:”+_connection);
}
While the log is as follows:
getting connection from pool:Connection Pool:System, Total connections:9, Available:14, Checked-out:-5
[07/ 7?/2002 09:58:36:4] info: --------------------------------------
[07/ 7?/2002 09:58:36:4] info: action: Processing a GET for /DiskLogon
[07/ 7?/2002 09:58:36:4] info: --------------------------------------
[07/ 7?/2002 09:58:36:4] info: --------------------------------------
[07/ 7?/2002 09:58:36:4] info: action: Looking for Action instance for class cn.edu.gxeea.action.system.DiskLogonAction
[07/ 7?/2002 09:58:36:4] info: --------------------------------------
Warning: No user information is stored in the session
getting connection from pool:Connection Pool:System, Total connections:9, Available:14, Checked-out:-5
[07/ 7?/2002 09:58:49:2] info: --------------------------------------
[07/ 7?/2002 09:58:49:2] info: action: Processing a POST for /logon
[07/ 7?/2002 09:58:49:2] info: --------------------------------------
[07/ 7?/2002 09:58:49:2] info: --------------------------------------
[07/ 7?/2002 09:58:49:2] info: action: Looking for Action instance for class cn.edu.gxeea.action.system.LogonAction
[07/ 7?/2002 09:58:49:2] info: --------------------------------------
Warning: No user information is stored in the session
getting connection from pool:Connection Pool:System, Total connections:9, Available:14, Checked-out:-5
The normal log should be like these:
07/ 7?/2002 09:53:50:0] info: action: Looking for Action instance for class cn.edu.gxeea.action.system.LogonAction
[07/ 7?/2002 09:53:50:0] info: --------------------------------------
getting connection from pool:Connection Pool:System, Total connections:10, Available:14, Checked-out:-4
Done:got connection from pool:com.softwareag.tamino.db.API.connection.TConnectionWrapper@7115ce
#webMethods#API-Management#webMethods-Tamino-XML-Server-APIs