隨筆-295  評論-26  文章-1  trackbacks-0

          Server.xml? :?
          <GlobalNamingResources>
          ??????? <!-- Test entry for demonstration purposes -->
          ??????? <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
          ??????? <!-- Editable user database that can also be used by
          ???????? UserDatabaseRealm to authenticate users -->
          ??????? <Resource auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/>
          ???? <!--??
          ??????? <Resource
          ??????????? auth="Container"
          ??????????? name="jdbc/PathPlat"
          ??????????? type="javax.sql.DataSource"
          ??????????? password=""
          ??????????? driverClassName="net.sourceforge.jtds.jdbc.Driver"
          ??????????? maxIdle="50"
          ??????????? maxWait="5000"
          ??????????? username="sa"
          ??????????? url="jdbc:jtds:sqlserver://192.168.0.155:1433/pathplat;tds=8.0;lastupdatecount=true"
          ??????????? removeAbandoned="true"
          ??????????? removeAbandonedTimeout="60"
          ??????????? maxActive="100"/>??? -->
          ??????????
          ??????? <Resource
          ??????????? name="jdbc/PathPlat"
          ??????????? auth="Container"
          ??????????? type="javax.sql.DataSource"
          ??????????? password=""
          ??????????? driverClassName="oracle.jdbc.driver.OracleDriver"
          ??????????? maxIdle="50"
          ??????????? maxWait="5000"
          ??????????? username="tep"
          ??????????? url="jdbc:oracle:thin:@192.168.0.166:1521:w"
          ??????????? removeAbandoned="true"
          ??????????? removeAbandonedTimeout="60"
          ??????????? maxActive="100"/>
          ??????
          ??? </GlobalNamingResources>
          context.xml
          <?xml version="1.0" encoding="UTF-8"?>
          <Context path="/PathCrm" reloadable="true">
          ? <ResourceLink global="jdbc/PathPlat" name="jdbc/PathPlat" type="javax.sql.DataSource"/>
          </Context>
          hibernate.cfg.xml:
          <?xml version='1.0' encoding='utf-8'?>

          <!DOCTYPE hibernate-configuration PUBLIC
          ??????? "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
          ??????? "

          <hibernate-configuration>

          ??? <session-factory>

          ??????? <!-- Database connection settings -->
          ??????? <property? name="connection.datasource">java:comp/env/jdbc/PathPlat</property>?

          ??????? <!-- SQL dialect -->
          ??????? <!--<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>-->
          ??????? <property name="dialect">org.hibernate.dialect.OracleDialect</property>

          ??????? <!-- Enable Hibernate's automatic session context management -->
          ??????? <property name="current_session_context_class">thread</property>

          ??????? <!-- Disable the second-level cache? -->
          ??????? <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>

          ??????? <!-- Echo all executed SQL to stdout -->
          ??????? <property name="show_sql">false</property>

          ?<mapping resource="/wms/entity/WmsAdjustStoreCmdt.hbm.xml"/>
          ??????? <mapping resource="/wms/entity/WmsStorage.hbm.xml"/>
          ??
          ??? </session-factory>

          </hibernate-configuration>



          大盤預(yù)測 國富論
          posted on 2007-08-15 10:44 華夢行 閱讀(155) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 黑水县| 镇江市| 乌海市| 清新县| 安阳市| 容城县| 青州市| 遵义市| 印江| 吉林市| 太康县| 小金县| 库车县| 车致| 晋城| 台安县| 仙居县| 青浦区| 肃宁县| 威宁| 瑞丽市| 高青县| 禄劝| 黄梅县| 连南| 赤水市| 娄烦县| 扶沟县| 佛坪县| 来安县| 共和县| 田东县| 北辰区| 郧西县| 峨山| 库伦旗| 河北区| 梅河口市| 红安县| 绵阳市| 手游|