隨筆-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>



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

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


          網站導航:
           
          主站蜘蛛池模板: 房山区| 含山县| 深州市| 庆云县| 淳安县| 安康市| 宁安市| 铁力市| 小金县| 霍林郭勒市| 东光县| 淮北市| 筠连县| 五峰| 赤城县| 阿克| 启东市| 黄山市| 崇明县| 铁力市| 乌兰浩特市| 襄樊市| 将乐县| 抚宁县| 乌兰县| 且末县| 揭东县| 高碑店市| 平乡县| 苍梧县| 三明市| 德昌县| 凌云县| 锦州市| 屯昌县| 兰溪市| 嘉善县| 什邡市| 涞源县| 绍兴市| 沙洋县|