설정파일은 2가지가 있습니다.
GlueMaster.properties
GlueMaster.properties 에는 8개의 property 정보가 있습니다.
manager.log.file.path=/was/logs/app_debug_log.log manager.log.file.path.pattern=/was/logs/app_debug_log-%d{yyyy-MM-dd}.%i.log manager.datasource.jndiname=JNDI_NAME manager.querypath=query/oracle manager.ismain=false manager.ismasterhistory=true access.querypath=access-query/oracle access.rmi.registryPort=1199
GlueMaster Manager 일 경우
manager.log.file.path=/was/logs/app_debug_log.log manager.log.file.path.pattern=/was/logs/app_debug_log-%d{yyyy-MM-dd}.%i.log manager.datasource.jndiname=JNDI_NAME manager.querypath=query/oracle manager.ismain=false manager.ismasterhistory=true access.querypath=access-query/oracle access.rmi.registryPort=1199
Biz Web Application 일 경우
manager.datasource.jndiname=JNDI_NAME access.querypath=access-query/oracle access.rmi.registryPort=1199
glue-master-access.xml
glue-master-access.xml 에는 1개의 bean 정보가 있으며, bean id는 dataSource로 고정입니다.
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> <bean id="dataSource" ... > <!-- <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="${manager.datasource.jndiname}"/> <property name="resourceRef" value="false"/> </bean> <bean id="dataSource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/> <property name="url" value="jdbc:oracle:thin:@127.0.0.1:1521:XE"/> <property name="username" value="GM_USER"/> <property name="password" value="GM_USER"/> <property name="defaultAutoCommit" value="false" /> <property name="minIdle" value="0" /> <property name="maxIdle" value="8" /> <property name="maxTotal" value="-1" /> </bean> --> </beans>
Web Application 인 경우
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="${manager.datasource.jndiname}"/> <property name="resourceRef" value="false"/> </bean> </beans>
Web Application 인 아닌 경우
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> <bean id="dataSource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="..."/> <property name="url" value="..."/> <property name="username" value="..."/> <property name="password" value="..."/> <property name="defaultAutoCommit" value="false" /> <property name="minIdle" value="0" /> <property name="maxIdle" value="8" /> <property name="maxTotal" value="-1" /> </bean> </beans>