|
applicationContext.xml中配置如下:
<prop key="hibernate.dialect">net.sf.hibernate.dialect.Oracle9Dialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.cglib.use_reflection_optimizer">true</prop>
<prop key="hibernate.proxool.xml">proxool.xml</prop>
<prop key="hibernate.proxool.pool_alias">testspring</prop>
proxool.xml如下:
<proxool>
<alias>testspring</alias>
<driver-url>jdbc:oracle:thin:@192.168.0.100:1521:test</driver-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<driver-properties>
<property name="user" value="test"/>
<property name="password" value="test"/>
</driver-properties>
<house-keeping-sleep-time>90000</house-keeping-sleep-time>
<proxool.simultaneous-build-throttle>100</proxool.simultaneous-build-throttle>
<prototype-count>10</prototype-count>
<maximum-connection-count>100</maximum-connection-count>
<minimum-connection-count>10</minimum-connection-count>
</proxool>
但是web.xml当加载时总是提示:
Configuring Proxool Provider using JAXPConfigurator: proxool.xml
[FATAL] 2007-01-11 20:57:58,100 method:net.sf.hibernate.connection.ProxoolConnectionProvider.configure(ProxoolConnectionProvider.java:126)
Proxool Provider unable to load JAXP configurator file: proxool.xml
org.logicalcobwebs.proxool.ProxoolException: Parsing failed.
为什么不能读取并解析proxool.xml呢? |
|