<BeanID= "DataSource1"class= "Org.apache.tomcat.jdbc.pool.DataSource"Destroy-method= "Close"> < Propertyname= "Poolproperties"> <Beanclass= "Org.apache.tomcat.jdbc.pool.PoolProperties"> < Propertyname= "Driverclassname"value= "Com.mysql.jdbc.Driver" /> < Propertyname= "url"value= "${jdbc.url}" /> < Propertyname= "username"value= "${jdbc.user}" /> < Propertyname= "Password"value= "${jdbc.password}" /> <!--Register the pool with JMX. In order for the connection pool object to create the MBean. - < Propertyname= "jmxenabled"value= "true" /> <!--The indication of whether objects would be validated by the idle object evictor. - < Propertyname= "Testwhileidle"value= "true" /> <!--The indication of whether objects would be a validated before being borrowed from the pool. - < Propertyname= "Testonborrow"value= "false" /> < Propertyname= "Testonreturn"value= "false" /> < Propertyname= "InitialSize"value= "${jdbc.initialpoolsize}" /> < Propertyname= "Maxactive"value= "${jdbc.maxactive}" /> < Propertyname= "Maxwait"value= "${jdbc.maxwait}" /> < Propertyname= "Minidle"value= "${jdbc.minidle}" /> < Propertyname= "Maxidle"value= "${jdbc.maxidle}" /> < Propertyname= "MaxAge"value= "60000" /> <!--The number of milliseconds to sleep between runs of the idle connection Validation/cleaner thread. - < Propertyname= "Timebetweenevictionrunsmillis"value= "15000" /> <!--The minimum amount of time an object could sit idle in the pool before it was eligible for eviction. - < Propertyname= "Minevictableidletimemillis"value= "60000" /> < Propertyname= "removeabandoned"value= "true" /> < Propertyname= "Removeabandonedtimeout"value= "+" /> < Propertyname= "Validationquery"value= "Select 1" /> < Propertyname= "Validationinterval"value= "30000" /> </Bean> </ Property> </Bean>
Energy project XML file tag interpretation--datasource