이강우 2015/08/03 16:13

Context.xml

ROOT.xml
<?xml version='1.0' encoding='utf-8'?>
 
<Context docBase="/software/docroot/app.war" privileged="true" reloadable="true">
<!-- ### MySQL JDBC JNDI - 1node ###
        <Resource name="jdbc/mysql" auth="Container"
                type="javax.sql.DataSource"
                maxActive="100"
                maxIdle="30"
                maxWait="10000"
                username="USERNAME"
                password="PASSWORD"
                driverClassName="com.mysql.jdbc.Driver"
                removeAbandoned="true"
		removeAbandonedTimeout="60"
                logAbandoned="true"
                validationQuery="select 1"
                url="jdbc:mysql://IPADDRESS:PORT/DBNAME?autoReconnect=true" />
-->
<!-- ### Oracle JDBC JNDI - 1node ###
	<Resource name="jdbc/JNDINAME" auth="Container"
                type="javax.sql.DataSource"
                maxActive="100"
                maxIdle="30"
                maxWait="10000"
                username="USERNAME"
                password="PASSWORD"
                driverClassName="oracle.jdbc.driver.OracleDriver"
                removeAbandoned="true"
                removeAbandonedTimeout="60"
                logAbandoned="true"
                validationQuery="select 1 from dual"
                url="jdbc:oracle:thin:@localhost:1521:SID" />
-->
<!-- ### Oracle RAC JDBC JNDI - 2node ###
        <Resource name="jdbc/jndiname" auth="Container"
                type="javax.sql.DataSource"
                maxActive="100"
                maxIdle="30"
                maxWait="10000"
                username="USERNAME"
                password="PASSWORD"
                driverClassName="oracle.jdbc.driver.OracleDriver"
                removeAbandoned="true"
                removeAbandonedTimeout="60"
                logAbandoned="true"
                validationQuery="select 1 from dual"
                url="jdbc:oracle:thin:@(description=(address_list=(load_balance=on)(failover=on)(address=(protocol=tcp)(host=1.1.1.1)(port=1521))(address=(protocol=tcp)(host=2.2.2.2)(port=1521)))(connect_data=(service_name=SERVICE_NAME)(failover_mode=(type=select)(method=basic))))" />
-->
<!-- ### Oracle RAC JDBC JNDI - 4node ###
        <Resource name="jdbc/JNDINAME" auth="Container"
                type="javax.sql.DataSource"
                maxActive="100"
                maxIdle="30"
                maxWait="10000"
                username="USERNAME"
                password="PASSWORD"
                driverClassName="oracle.jdbc.driver.OracleDriver"
                removeAbandoned="true"
                removeAbandonedTimeout="60"
                logAbandoned="true"
                validationQuery="select 1 from dual"
                url="jdbc:oracle:thin:@(description=(address_list=(load_balance=on)(failover=on)(address=(protocol=tcp)(host=1.1.1.1)(port=1521))(address=(protocol=tcp)(host=2.2.2.2)(port=1521))(address=(protocol=tcp)(host=3.3.3.3)(port=1521))(address=(protocol=tcp)(host=4.4.4.4)(port=1521)))(connect_data=(service_name=SERVICE_NAME)(failover_mode=(type=select)(method=basic))))" />
-->
</Context>
로그인하면 댓글을 남길 수 있습니다.
  • conf_engine_host_root.xml.txt
  • 마지막으로 수정됨: 2019/07/07 12:38
  • 저자 koov