ITPub博客

首页 > Linux操作系统 > Linux操作系统 > tomcat 数据库连接池配置 server.xml

tomcat 数据库连接池配置 server.xml

原创 Linux操作系统 作者:sjh790910 时间:2009-05-07 12:19:46 0 删除 编辑


debug="0"/>
debug="0"/>

<!-- Global JNDI resources -->


<!-- Test entry for demonstration purposes -->


<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved">



factory
org.apache.catalina.users.MemoryUserDatabaseFactory


pathname
conf/tomcat-users.xml





<!-- Define the Tomcat Stand-Alone Service -->




<!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified
during installation -->
port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000" 
disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->



<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<!--
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" debug="0" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->

<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
enableLookups="false" redirectPort="8443" debug="0"
protocol="AJP/1.3" />



<!-- Define the top level container in our container hierarchy -->




-->

<!-- Global logger unless overridden at lower levels -->
prefix="catalina_log." suffix=".txt"
timestamp="true"/>

<!-- Because this Realm is here, an instance will be shared globally -->

<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
debug="0" resourceName="UserDatabase"/>

<!-- Comment out the old realm but leave here for now in case we
need to go back quickly -->



<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">




directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>


unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">

<!--
sun add 2007-03-29
-->

debug="5" reloadable="true" crossContext="true">

prefix="XCFI_log." suffix=".txt"
timestamp="true"/>

auth="Container"
type="javax.sql.DataSource"/>



factory
org.apache.commons.dbcp.BasicDataSourceFactory


<!-- 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.
-->

maxActive
100


<!-- 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.
-->

maxIdle
30


<!-- 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.
-->

maxWait
10000


<!-- MySQL dB username and password for dB connections -->

username
xcfi


password
xcfi2106

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8688981/viewspace-594401/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
下一篇: sql跨库查询
请登录后发表评论 登录
全部评论

注册时间:2009-05-07

  • 博文量
    4
  • 访问量
    5644