//////////////////////////ProxoolConf.xml文件如下<?xml version="1.0" encoding="UTF-8"?>
<something-else-entirely>
<proxool>
<alias>pool</alias>
<!--proxool只能管理由自己产生的连接-->
<driver-url>
jdbc:oracle:thin:@localhost:1521:XE
</driver-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<driver-properties>
<property name="user" value="system" />
<property name="password" value="8888" />
</driver-properties>
<!-- proxool自动侦察各个连接状态的时间间隔(毫秒),侦察到空闲的连接就马上回收,超时的销毁-->
<house-keeping-sleep-time>90000</house-keeping-sleep-time>
<!-- 指因未有空闲连接可以分配而在队列中等候的最大请求数,超过这个请求数的用户连接就不会被接受-->
<maximum-new-connections>20</maximum-new-connections>
<!-- 最少保持的空闲连接数-->
<prototype-count>5</prototype-count>
<!-- 允许最大连接数,超过了这个连接,再有请求时,就排在队列中等候,最大的等待请求数由maximum-new-connections决定-->
<maximum-connection-count>100</maximum-connection-count>
<!-- 最小连接数-->
<minimum-connection-count>10</minimum-connection-count>
</proxool>
</something-else-entirely>
//////////////////////hibernate.cfg.xml文件如下<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="dialect">
org.hibernate.dialect.OracleDialect
</property>
<property name="hibernate.show_sql">True</property>
<property name="hibernate.proxool.pool_alias">pool</property>
<property name="hibernate.proxool.xml">ProxoolConf.xml</property>
<property name="hibernate.connection.provider_class">
org.hibernate.connection.ProxoolConnectionProvider
</property>
<mapping resource="net/shop/ygx/User.hbm.xml" />
</session-factory>
</hibernate-configuration>//////////////////////////////ExpUser.java如下package net.shop.ygx;import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;public class ExpUser { /**
 * @param args
 */
public static void main(String[] args) {
// TODO Auto-generated method stub
Configuration config = new Configuration().configure();
System.out.println("Creating tables...");
SchemaExport schemaExport = new SchemaExport(config);
schemaExport.create(true, true);
}}我是通过ExpUser类创建一张t_user表,原来通过hibernate自带的连接池时运行正常,所以User.hbm.xml没有问题,但是通过proxool连接数据库,运行时没有报任何错误,但是数据库中并没有创建t_user表,所以我想问下是不是通过proxool连接数据库时ExpUser类要改,如果不是问题在哪,谢谢了!