If you are using BasicDataSource then use the addConnectionProperty method:
http://jakarta.apache.org/commons/dbcp/apidocs/org/apache/commons/dbcp/BasicDataSource.html#addConnectionProperty(java.lang.String,%20java.lang.String)

If you are creating the pool yourself you can do:
DriverConnectionFactory driverConnectionFactory =
new DriverConnectionFactory(driver, url, connectionProperties);

Regards
Dirk


Arjen van der Weijden wrote:
Hi Dirk,

Can you tell me where I can do the configuring? I'm not using just plain
java objects so no tomcat and struts or other frameworks.

thanks,


Arjen


Dirk Verbeeck <[EMAIL PROTECTED] To: Jakarta Commons Users List <[email protected]> ndora.be> cc: Subject: Re: DBCP Oracle 04/27/2005 08:28 AM Please respond to "Jakarta Commons Users List"





Try the "connectionProperties" parameter. http://jakarta.apache.org/commons/dbcp/configuration.html

-- Dirk

Durfee, Bernard wrote:

An OracleConnection has some additional, non-standard, properties that
can be set, such as prefetchSize. Is there a way to configure the DBCP
<resource> to pass those additional parameters when creating the
DataSource? I'd like to configure it there instead of having to call
addConnectionProperty() in the code.

Thanks,
Bernard Durfee



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to