You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Gi...@teamsw.it on 2002/02/18 09:07:12 UTC
Problem with db pool
I've this line code :
try{
Properties poolProperties = new Properties();
poolProperties.put("services.PoolBrokerService.classname",
"org.apache.turbine.services.db.TurbinePoolBrokerService");
poolProperties.put("services.MapBrokerService.classname",
"org.apache.turbine.services.db.TurbineMapBrokerService");
poolProperties.put("database.default.driver",
"com.ibm.as400.access.AS400JDBCDriver");
poolProperties.put("database.default.url",
"jdbc:as400://QUOVADIS/cdatprove");
poolProperties.put("database.default.username", "blot");
poolProperties.put("database.default.password", "blot");
poolProperties.put("database.default.maxConnections", "10");
poolProperties.put("database.default.expiryTime", "360000");
poolProperties.put("database.default.connectionWaitTimeout",
"10000");
poolProperties.put("database.default.logInterval",
"300000");
TurbineResourceService.setProperties(poolProperties);
}catch(Exception dbe){
}
//prova connessione
DBConnection dbConn = null;
try {
dbConn = TurbineDB.getConnection();
}catch (Exception e){
}
when i try the TurbineDB.getConnection() result this code error:
org.apache.turbine.services.InstantiationException: ServiceBroker:
unknown service PoolBrokerService request PoolBrokerService requested
at
org.apache.turbine.services.BaseServiceBroker.getServiceInstance(BaseServiceBroker.java:356)
at
org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBroker.java:298)
at
org.apache.turbine.services.db.TurbineDB.getPoolBroker(TurbineDB.java:309)
at
org.apache.turbine.services.db.TurbineDB.getConnection(TurbineDB.java:169)
at
it.teamsw.customer.teamswapp.servlets.ServletMain.initDbBroker(ServletMain.java:244)
at
it.teamsw.customer.teamswapp.servlets.ServletMain.init(ServletMain.java:110)
what the problem?
help me please
Thanks
Giuliano
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>