when I using pooled connnections,I got such exceptions:
com.softwareag.tamino.db.API.common.TPreconditionViolation: No pool has been found, thus no connection is available!
at com.softwareag.tamino.db.API.common.TContractVerifier.precondition(TContractVerifier.java:31)
at com.softwareag.tamino.db.API.connection.TConnectionPoolManager.getConnection(TConnectionPoolManager.java:94)
at cn.edu.gxeea.base.StorageContext.(StorageContext.java:60)
at cn.edu.gxeea.entity.plan.builder.MajorPlanItemBuilder.main(MajorPlanItemBuilder.java:46)
My code is:
if(poolManager == null)
poolManager = TConnectionPoolManager.getInstance();
connection = poolManager.getConnection(“System”);
and the ManagedConnectionPools.xml is:
http://DatabaseServer/tamino/SystemDatabase
User
10
20
1000
When I check the value of poolManager,I found in it’s HashMap all item are null. and when it got to the getConnection function call,exception was thrown. but I use the same database url in the IE, it works fine.
any suggestion?
[This message was edited by Feingray on 28 Apr 2002 at 08:36.]
#webMethods#API-Management#webMethods-Tamino-XML-Server-APIs