Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.32 KB | None | 0 0
  1. <!-- Inicio archivo context.xml -->
  2.  
  3. <?xml version='1.0' encoding='utf-8'?>
  4. <!--
  5. Licensed to the Apache Software Foundation (ASF) under one or more
  6. contributor license agreements. See the NOTICE file distributed with
  7. this work for additional information regarding copyright ownership.
  8. The ASF licenses this file to You under the Apache License, Version 2.0
  9. (the "License"); you may not use this file except in compliance with
  10. the License. You may obtain a copy of the License at
  11.  
  12. http://www.apache.org/licenses/LICENSE-2.0
  13.  
  14. Unless required by applicable law or agreed to in writing, software
  15. distributed under the License is distributed on an "AS IS" BASIS,
  16. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. See the License for the specific language governing permissions and
  18. limitations under the License.
  19. -->
  20. <!-- The contents of this file will be loaded for each web application -->
  21. <Context>
  22.  
  23. <!-- Default set of monitored resources. If one of these changes, the -->
  24. <!-- web application will be reloaded. -->
  25. <WatchedResource>WEB-INF/web.xml</WatchedResource>
  26. <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
  27.  
  28. <!-- Uncomment this to disable session persistence across Tomcat restarts -->
  29. <!--
  30. <Manager pathname="" />
  31. -->
  32.  
  33. <!-- Uncomment this to enable Comet connection tacking (provides events
  34. on session expiration as well as webapp lifecycle) -->
  35. <!--
  36. <Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
  37. -->
  38.  
  39. <ResourceLink name="jdbc/axispreDS2"
  40. global="jdbc/axispreDS2Global"
  41. auth="Container"
  42. type="javax.sql.DataSource" />
  43.  
  44. <ResourceLink name="jdbc/coreAxis"
  45. global="jdbc/axispreDS2Global"
  46. auth="Container"
  47. type="javax.sql.DataSource" />
  48. </Context>
  49.  
  50. <!-- Fin archivo context.xml -->
  51.  
  52. <!-- ================================================================================================= -->
  53. <!-- ================================================================================================= -->
  54. <!-- ================================================================================================= -->
  55. <!-- ================================================================================================= -->
  56. <!-- ================================================================================================= -->
  57. <!-- ================================================================================================= -->
  58.  
  59. <!-- Inicio archivo server.xml -->
  60.  
  61.  
  62. <?xml version='1.0' encoding='utf-8'?>
  63. <!--
  64. Licensed to the Apache Software Foundation (ASF) under one or more
  65. contributor license agreements. See the NOTICE file distributed with
  66. this work for additional information regarding copyright ownership.
  67. The ASF licenses this file to You under the Apache License, Version 2.0
  68. (the "License"); you may not use this file except in compliance with
  69. the License. You may obtain a copy of the License at
  70.  
  71. http://www.apache.org/licenses/LICENSE-2.0
  72.  
  73. Unless required by applicable law or agreed to in writing, software
  74. distributed under the License is distributed on an "AS IS" BASIS,
  75. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  76. See the License for the specific language governing permissions and
  77. limitations under the License.
  78. -->
  79. <!-- Note: A "Server" is not itself a "Container", so you may not
  80. define subcomponents such as "Valves" at this level.
  81. Documentation at /docs/config/server.html
  82. -->
  83. <Server port="8005" shutdown="SHUTDOWN">
  84. <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
  85. <!-- Security listener. Documentation at /docs/config/listeners.html
  86. <Listener className="org.apache.catalina.security.SecurityListener" />
  87. -->
  88. <!--APR library loader. Documentation at /docs/apr.html -->
  89. <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  90. <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  91. <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  92. <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  93. <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
  94.  
  95. <!-- Global JNDI resources
  96. Documentation at /docs/jndi-resources-howto.html
  97. -->
  98. <GlobalNamingResources>
  99. <!-- Editable user database that can also be used by
  100. UserDatabaseRealm to authenticate users
  101. -->
  102. <Resource name="UserDatabase" auth="Container"
  103. type="org.apache.catalina.UserDatabase"
  104. description="User database that can be updated and saved"
  105. factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
  106. pathname="conf/tomcat-users.xml" />
  107.  
  108. <!-- DS Zurich -->
  109. <Resource
  110. name="jdbc/axispreDS2Global"
  111. global="jdbc/axispreDS2Global"
  112. auth="Container"
  113. scope="Shareable"
  114. type="javax.sql.DataSource"
  115. driverClassName="oracle.jdbc.driver.OracleDriver"
  116. url="jdbc:oracle:thin:@desazscbd01.santanderseguros.cl.bsch:1521/desanexo"
  117. username="axis" password="AXIS2018axis"
  118. validationQuery="select sysdate from dual"
  119. accessToUnderlyingConnectionAllowed="true"
  120. maxActive="50"
  121. maxIdle="20"
  122. initialSize="3"
  123. maxWait="3000"
  124. removeAbandoned="true"
  125. removeAbandonedTimeout="60"
  126. logAbandoned="true"
  127. />
  128.  
  129. <!-- DS Azure
  130. <Resource
  131. name="jdbc/axispreDS2Global"
  132. global="jdbc/axispreDS2Global"
  133. auth="Container"
  134. scope="Shareable"
  135. type="javax.sql.DataSource"
  136. driverClassName="oracle.jdbc.driver.OracleDriver"
  137. url="jdbc:oracle:thin:@192.153.13.132:1521:desaclou"
  138. username="axis00" password="AXIS002018axis00"
  139. validationQuery="select sysdate from dual"
  140. accessToUnderlyingConnectionAllowed="true"
  141. maxActive="50"
  142. maxIdle="20"
  143. initialSize="3"
  144. maxWait="3000"
  145. removeAbandoned="true"
  146. removeAbandonedTimeout="60"
  147. logAbandoned="true"
  148. />
  149. -->
  150. </GlobalNamingResources>
  151.  
  152. <!-- A "Service" is a collection of one or more "Connectors" that share
  153. a single "Container" Note: A "Service" is not itself a "Container",
  154. so you may not define subcomponents such as "Valves" at this level.
  155. Documentation at /docs/config/service.html
  156. -->
  157. <Service name="Catalina">
  158.  
  159. <!--The connectors can use a shared executor, you can define one or more named thread pools-->
  160. <!--
  161. <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
  162. maxThreads="150" minSpareThreads="4"/>
  163. -->
  164.  
  165.  
  166. <!-- A "Connector" represents an endpoint by which requests are received
  167. and responses are returned. Documentation at :
  168. Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
  169. Java AJP Connector: /docs/config/ajp.html
  170. APR (HTTP/AJP) Connector: /docs/apr.html
  171. Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
  172. -->
  173. <Connector port="8080" protocol="HTTP/1.1"
  174. connectionTimeout="20000"
  175. redirectPort="8443" />
  176. <!-- A "Connector" using the shared thread pool-->
  177. <!--
  178. <Connector executor="tomcatThreadPool"
  179. port="8080" protocol="HTTP/1.1"
  180. connectionTimeout="20000"
  181. redirectPort="8443" />
  182. -->
  183. <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443
  184. This connector uses the NIO implementation that requires the JSSE
  185. style configuration. When using the APR/native implementation, the
  186. OpenSSL style configuration is required as described in the APR/native
  187. documentation -->
  188. <!--
  189. <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
  190. maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
  191. clientAuth="false" sslProtocol="TLS" />
  192. -->
  193.  
  194. <!-- Define an AJP 1.3 Connector on port 8009 -->
  195. <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
  196.  
  197.  
  198. <!-- An Engine represents the entry point (within Catalina) that processes
  199. every request. The Engine implementation for Tomcat stand alone
  200. analyzes the HTTP headers included with the request, and passes them
  201. on to the appropriate Host (virtual host).
  202. Documentation at /docs/config/engine.html -->
  203.  
  204. <!-- You should set jvmRoute to support load-balancing via AJP ie :
  205. <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
  206. -->
  207. <Engine name="Catalina" defaultHost="localhost">
  208.  
  209. <!--For clustering, please take a look at documentation at:
  210. /docs/cluster-howto.html (simple how to)
  211. /docs/config/cluster.html (reference documentation) -->
  212. <!--
  213. <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
  214. -->
  215.  
  216. <!-- Use the LockOutRealm to prevent attempts to guess user passwords
  217. via a brute-force attack -->
  218. <Realm className="org.apache.catalina.realm.LockOutRealm">
  219. <!-- This Realm uses the UserDatabase configured in the global JNDI
  220. resources under the key "UserDatabase". Any edits
  221. that are performed against this UserDatabase are immediately
  222. available for use by the Realm. -->
  223. <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
  224. resourceName="UserDatabase"/>
  225. </Realm>
  226.  
  227. <Host name="localhost" appBase="webapps"
  228. unpackWARs="true" autoDeploy="true">
  229.  
  230. <!-- SingleSignOn valve, share authentication between web applications
  231. Documentation at: /docs/config/valve.html -->
  232. <!--
  233. <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
  234. -->
  235.  
  236. <!-- Access log processes all example.
  237. Documentation at: /docs/config/valve.html
  238. Note: The pattern used is equivalent to using pattern="common" -->
  239. <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
  240. prefix="localhost_access_log" suffix=".txt"
  241. pattern="%h %l %u %t &quot;%r&quot; %s %b" />
  242.  
  243. </Host>
  244. </Engine>
  245. </Service>
  246. </Server>
  247.  
  248. <!-- Fin archivo server.xml -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement