tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hole" <andremailingl...@gmail.com>
Subject Re: Datasource Property Parameters (Oracle) JNDI
Date Fri, 11 Jan 2008 15:14:00 GMT
Well, REsource A works nice. When I startup Tomcat, are created 5 new
database connections.
Resource B allows connections to be created, but without pooling.

I'm without ideas! Please, could u help me?

---->>> Resource A
<Resource name="ehr" auth="Container"
             type="javax.sql.DataSource" driverClassName="
oracle.jdbc.driver.OracleDriver"
             url="jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03"
             username="alert_viewer" password="alert" initialSize="5"
maxActive="50" maxIdle="10" minIdle="5"
             maxWait="-1" defaultAutoCommit="false" />

---->>> Resource B
<Resource name="ehr" auth="Container"
            * type="oracle.jdbc.pool.OracleDataSource"  *  *
driverClassName="oracle.jdbc.OracleDriver"*
   *factory="oracle.jdbc.pool.OracleDataSourceFactory"  *
             url="jdbc:oracle:thin:@192.168.1.244:1521:MIGRA03"
             *user*="alert_viewer" password="alert" initialSize="5"
maxActive="50" maxIdle="10" minIdle="5"
             maxWait="-1" defaultAutoCommit="false" />



On Jan 11, 2008 2:40 PM, Caldarale, Charles R <Chuck.Caldarale@unisys.com>
wrote:
> > From: Andrew Hole [mailto:andremailinglist@gmail.com]
> > Subject: Re: Datasource Property Parameters (Oracle) JNDI
> >
> > I don't see examples with initial size of pool! Exists some default
> > value for pool initial size??
>
> To quote from the doc:
> "See the DBCP documentation for a complete list of configuration
> parameters."
> http://commons.apache.org/dbcp/configuration.html
>
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message