smartGeoinfoOriginal/target/classes/egovframework/spring/com/context-datasource.xml

46 lines
2.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
xmlns:jee="http://www.springframework.org/schema/jee"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.0.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd">
<!-- 환경설정 기본정보를 globals.properties 에서 참조하도록 propertyConfigurer 설정 -->
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:/egovframework/egovProps/globals.properties</value>
<!-- value>file:/product/jeus/egovProps/globals.properties</value-->
</list>
</property>
</bean>
<!-- db1(postgresql) -->
<bean id="dataSource1" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="${Globals.DB1.DriverClassName}"/>
<property name="url" value="${Globals.DB1.Url}" />
<property name="username" value="${Globals.DB1.UserName}"/>
<property name="password" value="${Globals.DB1.Password}"/>
<property name="validationQuery" value="select 1"/>
<property name="testWhileIdle" value="true"/>
<property name="timeBetweenEvictionRunsMillis" value="60000"/>
</bean>
<!-- db2(maria) -->
<!-- <bean id="dataSource2" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="${Globals.DB2.DriverClassName}"/>
<property name="url" value="${Globals.DB2.Url}" />
<property name="username" value="${Globals.DB2.UserName}"/>
<property name="password" value="${Globals.DB2.Password}"/>
<property name="validationQuery" value="select 1"/>
<property name="testWhileIdle" value="true"/>
<property name="timeBetweenEvictionRunsMillis" value="60000"/>
</bean> -->
<!-- jndi 설정 -->
<!-- <jee:jndi-lookup id="dataSource1" jndi-name="jboss/datasources/MariaDB_DS" expected-type="javax.sql.DataSource" /> -->
</beans>