eclipse+myeclipse+mysql服务器tomcat[1]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

eclipse+myeclipse+mysql
服务器
TOMCAT
1.配置数据源(Tomcat 5.0\conf\server.xml)在</Host>添加

 <Context path="/tt" docBase="tt"
                 debug="5" reloadable="true" crossContext="true">
           <!--tt为部署工程的名称,在C:\Tomcat 5.0\webapps下-->
          <Logger className="org.apache.catalina.logger.FileLogger"
                  prefix="localhost_tt_log." suffix=".txt"
                  timestamp="true"/>

          <Resource name="jdbc/mysql"
                    auth="Container"
                    type="javax.sql.DataSource"/>
             <!--jdbc/mysql isjndi name-->
          <ResourceParams name="jdbc/mysql">
             <parameter>
                <name>factory</name>
                <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
             </parameter>

             <!-- Maximum number of dB connections in pool. Make sure you
                  configure your mysqld max_connections large enough to handle
                  all of your db connections. Set to 0 for no limit.
                  -->
            <parameter>
              <name>maxActive</name>
              <value>100</value>
            </parameter>

            <!-- Maximum number of idle dB connections to retain in pool.
                 Set to -1 for no limit.  See also the DBCP documentation on this
                 and the minEvictableIdleTimeMillis configuration parameter.
                 -->
            <parameter>
              <name>maxIdle</name>
              <value>30</value>
            </parameter>

            <!-- Maximum time to wait for a dB connection to become available
                 in ms, in this example 10 seconds. An Exception is thrown if
                 this timeout is exceeded.  Set to -1 to wait indefinitely.
                 -->
            <parameter>
              <name>maxWait</name>
              <value>10000</value>
            </parameter>

本文关键:eclipse+myeclipse+mysql服务器tomcat
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top