tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Short" <dsh...@san.rr.com>
Subject RE: tomcat oracle jdbc pooling
Date Mon, 11 Oct 2004 16:38:57 GMT
Are you reading and setting the parameter values in your code before you
create the connection pool?

e.g. int MaxStatements =
Integer.parseInt(application.getInitParameter("maxStatements"));

-----Original Message-----
From: Bj [mailto:bjkhan@free.fr]
Sent: Monday, October 11, 2004 9:30 AM
To: Tomcat Users List
Subject: Re: tomcat oracle jdbc pooling


hi,

I'm using simple OracleDatasource and I want to activate
OracleDataSource.setMaxStatements() and
OracleDataSource.setImplicitCachingEnabled() through tomcat server.xml
or application web.xml.

For tomcat 5.0.19, when I add parameters in web.xml or server.xml it
doesn't work.

I've tried in web/xml :
<context-param>
     <param-name>implicitCachingEnabled</param-name>
     <param-value>true</param-value>
</context-param>
<context-param>
     <param-name>maxStatements</param-name>
     <param-value>8</param-value>
</context-param>

In server.xml I've tried :
<parameter>
	<name>implicitCachingEnabled</name>
	<value>true</value>
</parameter>
...

I'm not sure that it's possible to do this but it could be great.

Bj



David Short a écrit :

> Take a look here to get the skinny on what's available
>
(http://www.exciton.cs.rice.edu/JavaResources/Oracle/oracle/jdbc/pool/Oracle
> ConnectionCacheImpl.html).  Also, I set the "Setters" in my web.xml file.

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




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


Mime
View raw message