Advertisement
Guest User

Untitled

a guest
Jun 1st, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.19 KB | None | 0 0
  1. <Context path="" docBase="../dotCMS" debug="0" reloadable="false" crossContext="true">
  2.  
  3.  
  4.         <Resource name="mail/MailSession" auth="Container" type="javax.mail.Session" mail.smtp.host="localhost" />
  5.  
  6.         <!--
  7.                IMPORTANT your maxActive number of connections should be higher than the number of server threads you
  8.                configured in your server.xml, if not on heavy loads you will start getting db connections errors.
  9.                Your number of server threads should be the sum of threads for every connector (http, https, AJP, etc)
  10.                in your server.xml file.
  11.                We recommend you set your number of connections to be your max server threads + 10
  12.         -->
  13.         <!-- POSTGRESQL
  14.        <Resource name="jdbc/dotCMSPool" auth="Container"
  15.                  type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
  16.                  url="jdbc:postgresql://127.0.0.1/dotcms"
  17.                  username="postgres" password="xxxxxx" maxActive="50" maxIdle="10" maxWait="60000"
  18.                  removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true"
  19.                  testOnBorrow="true" validationQuery="SELECT 1"/>
  20.  
  21.        
  22.        MYSQL UTF8-->
  23.         <Resource name="jdbc/dotCMSPool" auth="Container"
  24.                  type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver"
  25.                  url="jdbc:mysql://localhost/dotcms?characterEncoding=UTF-8"
  26.                  username="remoteuser" password="Hg86xZ3g" maxActive="60" maxIdle="10" maxWait="60000"
  27.                  removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true"
  28.                  validationQuery="SELECT 1" testOnBorrow="true"/>
  29.         <!-- Oracle
  30.        <Resource name="jdbc/dotCMSPool" auth="Container"
  31.                  type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver"
  32.                  url="jdbc:oracle:thin:@192.168.1.128:1521:orcl"
  33.                  username="xxxxx" password="xxxxxx" maxActive="60" maxIdle="10" maxWait="60000"
  34.                  removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true"
  35.                  testOnBorrow="true" validationQuery="SELECT 1 from DUAL"/>
  36.        -->
  37.  
  38.         <!-- MSSQL
  39.        <Resource name="jdbc/dotCMSPool" auth="Container"
  40.                  type="javax.sql.DataSource" driverClassName="net.sourceforge.jtds.jdbc.Driver"
  41.                  url="jdbc:jtds:sqlserver://192.168.1.34:1433/dotcms"
  42.                  username="xxxxxx" password="xxxxxx" maxActive="60" maxIdle="10" maxWait="60000"
  43.                  removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true"
  44.                  testOnBorrow="true" validationQuery="SELECT 1"/>
  45.        -->
  46.  
  47.                         <Realm
  48.                              className="org.apache.catalina.realm.JAASRealm"
  49.                              appName="PortalRealm"
  50.                              userClassNames="com.liferay.portal.jaas.PortalPrincipal"
  51.                              roleClassNames="com.liferay.portal.jaas.PortalRole"
  52.                              debug="99"
  53.                              useContextClassLoader="false" />
  54.  
  55.                 </Context>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement