server.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--Licensed to the Apache Software Foundation (ASF) under one or morecontributor license agreements.  See the NOTICE file distributed withthis work for additional information regarding copyright ownership.The ASF licenses this file to You under the Apache License, Version 2.0(the "License"); you may not use this file except in compliance withthe License.  You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.
-->
<!-- Note:  A "Server" is not itself a "Container", so you may notdefine subcomponents such as "Valves" at this level.Documentation at /docs/config/server.html-->
<Server port="8005" shutdown="SHUTDOWN"><Listener className="org.apache.catalina.startup.VersionLoggerListener" /><!-- Security listener. Documentation at /docs/config/listeners.html<Listener className="org.apache.catalina.security.SecurityListener" />--><!--APR library loader. Documentation at /docs/apr.html --><Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /><!-- Prevent memory leaks due to use of particular java/javax APIs--><Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /><Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /><Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /><!-- Global JNDI resourcesDocumentation at /docs/jndi-resources-howto.html--><GlobalNamingResources><!-- Editable user database that can also be used byUserDatabaseRealm to authenticate users--><Resource name="UserDatabase" auth="Container"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" /><Resource name="jdbc/appDS1" auth="Container" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"type="javax.sql.DataSource"   driverClassName="oracle.jdbc.driver.OracleDriver"url="jdbc:oracle:thin:@172.16.200.110:1521:qddbsg2"username="iplat62" password="Baosight_123" initialSize="50" maxActive="300"  maxIdle="150" minIdle="50"  maxWait="60000"   /></GlobalNamingResources><!-- A "Service" is a collection of one or more "Connectors" that sharea single "Container" Note:  A "Service" is not itself a "Container",so you may not define subcomponents such as "Valves" at this level.Documentation at /docs/config/service.html--><Service name="Catalina"><!--The connectors can use a shared executor, you can define one or more named thread pools--><Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="500" minSpareThreads="50" maxIdleTime="60000" prestartminSpareThreads = "true"   maxQueueSize = "100"/><!-- A "Connector" represents an endpoint by which requests are receivedand responses are returned. Documentation at :Java HTTP Connector: /docs/config/http.htmlJava AJP  Connector: /docs/config/ajp.htmlAPR (HTTP/AJP) Connector: /docs/apr.htmlDefine a non-SSL/TLS HTTP/1.1 Connector on port 8080--><!--Connector port="8080" protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="8443" /--><!-- A "Connector" using the shared thread pool--><Connector executor="tomcatThreadPool" port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"connectionTimeout="60000" maxConnections="10000" redirectPort="8443" enableLookups="false"acceptCount="100" maxPostSize="10485760" maxHttpHeaderSize="8192" compression="on" disableUploadTimeout="true"compressionMinSize="2048"  acceptorThreadCount="2" URIEncoding="utf-8"processorCache="20000"  tcpNoDelay="true" connectionLinger="5" /><!-- Define an SSL/TLS HTTP/1.1 Connector on port 8443This connector uses the NIO implementation. The defaultSSLImplementation will depend on the presence of the APR/nativelibrary and the useOpenSSL attribute of theAprLifecycleListener.Either JSSE or OpenSSL style configuration may be used regardless ofthe SSLImplementation selected. JSSE style configuration is used below.--><!--<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"maxThreads="150" SSLEnabled="true"><SSLHostConfig><Certificate certificateKeystoreFile="conf/localhost-rsa.jks"type="RSA" /></SSLHostConfig></Connector>--><!-- Define an SSL/TLS HTTP/1.1 Connector on port 8443 with HTTP/2This connector uses the APR/native implementation which always usesOpenSSL for TLS.Either JSSE or OpenSSL style configuration may be used. OpenSSL styleconfiguration is used below.--><!--<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"maxThreads="150" SSLEnabled="true" ><UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /><SSLHostConfig><Certificate certificateKeyFile="conf/localhost-rsa-key.pem"certificateFile="conf/localhost-rsa-cert.pem"certificateChainFile="conf/localhost-rsa-chain.pem"type="RSA" /></SSLHostConfig></Connector>--><!-- Define an AJP 1.3 Connector on port 8009 --><!--<Connector protocol="AJP/1.3"address="::1"port="8009"redirectPort="8443" />--><!-- An Engine represents the entry point (within Catalina) that processesevery request.  The Engine implementation for Tomcat stand aloneanalyzes the HTTP headers included with the request, and passes themon to the appropriate Host (virtual host).Documentation at /docs/config/engine.html --><!-- You should set jvmRoute to support load-balancing via AJP ie :<Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">--><Engine name="Catalina" defaultHost="localhost"><!--For clustering, please take a look at documentation at:/docs/cluster-howto.html  (simple how to)/docs/config/cluster.html (reference documentation) --><!--<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>--><!-- Use the LockOutRealm to prevent attempts to guess user passwordsvia a brute-force attack --><Realm className="org.apache.catalina.realm.LockOutRealm"><!-- This Realm uses the UserDatabase configured in the global JNDIresources under the key "UserDatabase".  Any editsthat are performed against this UserDatabase are immediatelyavailable for use by the Realm.  --><Realm className="org.apache.catalina.realm.UserDatabaseRealm"resourceName="UserDatabase"/></Realm><Host name="localhost"  appBase="webapps"unpackWARs="true" autoDeploy="true"><!-- SingleSignOn valve, share authentication between web applicationsDocumentation at: /docs/config/valve.html --><!--<Valve className="org.apache.catalina.authenticator.SingleSignOn" />--><!-- Access log processes all example.Documentation at: /docs/config/valve.htmlNote: The pattern used is equivalent to using pattern="common" --><Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"prefix="localhost_access_log" suffix=".txt"pattern="%h %l %u %t &quot;%r&quot; %s %b" /></Host></Engine></Service>
</Server>

context.xml

tomcat ---- jndi方式配置连接相关推荐

  1. Hibernate Tomcat JNDI数据源配置(转)

    简述: 配置JNDI 查找Tomcat 中server.xml中定义的数据源 步骤: 1. 修改elipse的数据源server.xml 主要修改如下, 1. 添加下面这段Context文本 其中St ...

  2. Tomcat 6 部署工程总结,使用JNDI数据源配置

    工程需要用JNDI数据源方式部署到tomcat,参考网上文章后,经过配置测试,摸索出来了.     环境说明: 数据库:Oracle9i Web服务器:tomcat-6.0.33 tomcat启动方式 ...

  3. Hibernate Tomcat JNDI DataSource示例教程

    Hibernate Tomcat JNDI DataSource示例教程 欢迎来到Hibernate Tomcat JNDI DataSource示例教程.我们已经看到如何在独立的Java应用程序中使 ...

  4. Hibernate Tomcat JNDI数据源示例教程

    Welcome to the Hibernate Tomcat JNDI DataSource example tutorial. We have already seen how to use Hi ...

  5. Spring DataSource JNDI - Tomcat JNDI 配置示例

    Spring DataSource JNDI 的 Tomcat配置示例 欢迎使用Spring DataSource JNDI Tomcat示例教程.之前我们看到了如何使用Spring JDBC集成实现 ...

  6. Tomcat 5 5 JNDI Resource 配置

    分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow 也欢迎大家转载本篇文章.分享知识,造福人民,实现我们中华民族伟大复兴! Tomc ...

  7. tomcat jndi mysql_Tomcat使用JNDI配置数据源

    1. JNDI简介 1.1 定义 JNDI就是Sun提出的一套对象命名和目录服务的接口,全称为Java Naming and Directory Interface,简单的说就是JNDI通过目录服务的 ...

  8. Apache HTTP Server 与 Tomcat 的三种连接方式介绍

    http://www.ibm.com/developerworks/cn/opensource/os-lo-apache-tomcat/ 首先我们先介绍一下为什么要让 Apache 与 Tomcat ...

  9. java weblogic连接池,Weblogic JNDI 方式连接连接池 (工作中遇到的问题)

    背景描述 工作中客户的代码中没有alter session set nls_date_format = 'YYYY-MM-DD HH24:MI:SS',这个sql,可是agent每条请求平均抓了60次 ...

最新文章

  1. mybatis-plus入坑指南
  2. c语言文件fputs和fgets,文件的读写问题,fputs和fgets问题!!!!
  3. FastJsonUtils 需要fastjson
  4. 机器学习——决策树的三种学习方法
  5. 简单的Spring Boot管理员设置
  6. 如何计算出int的数据范围
  7. PCL之求点云的BoundingBox
  8. SQL Server 2012安装异常:Error while enabling Windows feature: NetFx3, Error Code: -2146498298
  9. lammps教程:minimize命令使用详解
  10. JQueryUI进度条组件学习笔记
  11. 极域课堂管理系统软件如何取消控制_智慧物流自动化智能仓储管理架构分析
  12. ai面试的优缺点_如果你的面试官是机器人?那么你该如何表现?
  13. java+selenium简单使用给斗鱼主播刷弹幕-.-
  14. Windows 11的这19个新功能,你都知道吗?
  15. NEFU ERP 企业资源计划[1] 详细知识点
  16. 码云推荐 | 那些优秀的网络爬虫工具介绍
  17. sql 选取当前日期,按照年月日进行格式化
  18. 《走出软件作坊》登录武汉光谷书城!
  19. Unity 景深Depth Of Field
  20. java动态时钟_Java实现的动态数字时钟功能示例【显示世界时间】|chu

热门文章

  1. 剑指offer 面试题03. 数组中重复的数字
  2. 利用c语言面向对象编程,用C语言程序实现面向对象编程
  3. 为什么跨境电商独立站将成为几年的焦点?
  4. 吴恩达机器学习ex5:正则化线性回归和方差与偏差
  5. SpringBoot指南(八)——SpringBoot整合Redis
  6. 花书+吴恩达深度学习(一)前馈神经网络(多层感知机 MLP)
  7. [APIO2017]商旅——分数优化+floyd+SPFA判负环+二分答案
  8. egg(115)--egg之订单页面筛选,搜索
  9. GOOGLE 分布式系统关键技术论文分析
  10. C# Property机制