commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip, Anil [ITS]" <aphil...@sprintspectrum.com>
Subject RE: [DBUtils] newbie qs
Date Wed, 21 Apr 2004 21:32:54 GMT


Thanks!
Anil Philip
EWS, Sprint (PCS)
phone: (913) 794 5682
jabber id: AnilPhilip01@jabber10.dev.sprint.com


-----Original Message-----
From: Jaime Garza [mailto:Jaime.Garza@newScale.com] 
Sent: Tuesday, April 20, 2004 7:50 PM
To: Jakarta Commons Users List
Subject: RE: [DBUtils] newbie qs


I have used a combination of commons DBCP and commons pool before.  Here
is an example, with a different driver...

Class.forName("org.hsqldb.jdbcDriver");
GenericObjectPool connectionPool = new GenericObjectPool(null);
DriverManagerConnectionFactory connectionFactory = new
DriverManagerConnectionFactory("jdbc:hsqldb:data/generation", "sa", "");
PoolableConnectionFactory poolableConnectionFactory = new
PoolableConnectionFactory(connectionFactory, connectionPool,
null,null,false,true); DataSource dataSource = new
PoolingDataSource(connectionPool);

And after that the datasource serves connections, supposedly pooled. It
worked for me...  Never tried dbutils tho.

- Jaime

-----Original Message-----
From: Philip, Anil [ITS] [mailto:aphili01@sprintspectrum.com] 
Sent: Tuesday, April 20, 2004 4:11 PM
To: commons-user@jakarta.apache.org
Subject: [DBUtils] newbie qs


I am simply looking for a library to connect to Oracle, (with connection
pooling ability) that is easy to use but performs decently... I was
directed to dbutils. Are there basic complete examples or a manual? This
page does not explain much. 
 http://jakarta.apache.org/commons/dbutils/examples.html

thanks,
Anil Philip
Overland Park, KS

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message