当前位置:编程学习 > JAVA >>

hibernate 自带连接池问题!!求高手解答。

项目中使用的是hibernate自带的连接池,配置如下
 <!-- properties -->
        <property name="hibernate.connection.datasource">jdbc/YYY</property>
        <property name="hibernate.connection.driver_class">COM.ibm.db2.jdbc.app.DB2Driver</property>
        <property name="hibernate.transaction.factory_class">net.sf.hibernate.transaction.JTATransactionFactory</property>        
        <property name="hibernate.transaction.manager_lookup_class">net.sf.hibernate.transaction.WebSphereTransactionManagerLookup</property>                
        <property name="hibernate.connection.schema">XXX</property>        
        <property name="hibernate.dialect">net.sf.hibernate.dialect.DB2Dialect</property>
        <property name="hibernate.show_sql">true</property>
        <property name="hibernate.use_outer_join">true</property>
        <property name="hibernate.default_schema">XXXX</property>
        <property name="hibernate.connection.pool_size">1</property>
        <property name="hibernate.statement_cache.size">25</property>
        <property name="hibernate.show_sql">true</property>
        <property name="hibernate.jdbc.batch_size">0</property>


数据源YYY是建立在websphere中,连接池的配置如下,


请问,项目发布起来以后实际的连接池最大数量是多少,是以hibernate配置文件中的 1 为准,还是以websphere中的为准,现在的项目遇到的问题是,当运行了1周左右后,用户就会出现登陆不到系统的问题,
提示的错误信息就是 不能得到连接。
--------------------编程问答-------------------- 当然看你lookup哪个jndi啊。。。
补充:Java ,  Web 开发
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,