On May 1, 2014, at 10:29 PM, Anu Prab <anupr...@gmail.com> wrote: > Hi, > > We are using Tomcat 7.0.40 version. We are using Tomcat DBCP for pooling > connections. > > We are able to pool connections for different aliases. But for one alias, > connections are not pooling. The user and password is good because the same > alias in apache dbcp works fine.
What do you mean by “alias”? Not following you there. > > Why are we not able to pool any connections here? Also, what do you mean when you say it’s “not pooling”? Are you getting an error or exception? If so, what is it? > > Here is a sample of context xml entry: Are you putting this in “conf/context.xml”? If so, are you sure that’s what you want? > > <Resource name="jdbc/resource" > auth="Container" > type="javax.sql.DataSource" > fairQueue="true" > factory="<customEncrytpedFactory>” Have you tried taking your custom factory out of the mix and using a stock one? Do you still see the same issue? Dan > username="<username>" > password="<encrypted_password>" > driverClassName="oracle.jdbc.OracleDriver" > url="<url>" > timeBetweenEvictionRunsMillis="1800000" > validationQuery="SELECT 1 from dual" > validationInterval="30000" > maxActive="50" > minIdle="4" > maxIdle="4" > maxWait="10000" > initialSize="4" > removeAbandonedTimeout="60" > removeAbandoned="true" > logAbandoned="false" > minEvictableIdleTimeMillis="600000" > initSQL="<initSQL>” > testOnBorrow="false" > testOnReturn="false" > testWhileIdle="true" > /> > > Thanks, > > Anu --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org