How are <Resource> elements in the server.xml file processed? For
instance...

<Resource
name="jdbc/myDS"
auth="Container"
type="javax.sql.DataSource"
factory="org.apache.commons.dbcp.BasicDataSourceFactory"

driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:oracle:thin:@my.db.com:1521:me"
username="me"
password="it"
connectionProperties="SetBigStringTryClob=true"

initialSize="0"
maxActive="20"
maxIdle="10"
minIdle="0"
maxWait="60000"
/>

...am I correct in thinking that when Tomcat is started it will grab an
instance of org.apache.commons.dbcp.BasicDataSourceFactory. It will then
call getObjectInstance() to retrieve the datasource. Is the rest handled
by the factory? Does Tomcat assume all remaining attributes are
properties that should be sent to the object factory?

Bernie


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

Reply via email to