在weblogic服务器部署与tomcat部署时项目池配置

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>
<session-factory>
<!--<property name="hibernate.connection.datasource">web-eccdb</property>  在weblogic服务器部署时使用-->
<property name="hibernate.connection.datasource">java:/comp/env/web-eccdb</property>----在tomcat服务器部署时使用
<property name="connection.provider_class">
org.hibernate.connection.DatasourceConnectionProvider
</property>
<property name="dialect">
org.hibernate.dialect.OracleDialect
</property>
<property name="hibernate.show_sql">false</property>
<property name="hibernate.transaction.factory_class">
org.hibernate.transaction.JDBCTransactionFactory
</property>
<property name="hibernate.query.factory_class">
org.hibernate.hql.classic.ClassicQueryTranslatorFactory
</property>

<mapping resource="com/hysoft/app/model/user/Appclient.hbm.xml" />
<mapping resource="com/hysoft/app/model/user/Appsetting.hbm.xml" />
<mapping resource="com/hysoft/app/model/user/Etc.hbm.xml" />
<mapping resource="com/hysoft/app/model/gsfw/DmRoadSegment.hbm.xml" />
<mapping resource="com/hysoft/app/model/road/FwBusiMsg.hbm.xml" />
<mapping resource="com/hysoft/app/model/road/RoadInfo.hbm.xml" />
</session-factory>
</hibernate-configuration>

posted @ 2016-10-14 14:39  乞彦  阅读(326)  评论(0编辑  收藏  举报