<?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"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
						http://www.springframework.org/schema/jdbc  http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd">

	
 	<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">  
		<property name="jndiName">  
			<value>#{conf['jdbc.jndiName']}</value>  
		</property>  
	</bean>

	<bean id="sqlSession" class="org.mybatis.spring.SqlSessionFactoryBean">
		<property name="dataSource" ref="dataSource" />
		<property name="configLocation" value="classpath:/i2c/sqlmap/config/sqlmap-config${server-type}.xml" />
		<property name="mapperLocations" >
			<array>
				<value>classpath*:/egovframework/sqlmap/config/#{'db.type'}/*.xml</value>
				<value>classpath*:/i2c/sqlmap/#{conf['db.type']}/**/*.xml</value>
				<value>classpath*:/i2c/biz/**/#{conf['db.type']}/*.xml</value>
				<value>classpath*:/i2c/cmm/**/#{conf['db.type']}/*.xml</value>				                 
				<value>classpath:/com/i2sema/**/#{conf['db.type']}/*.xml</value>			
			</array>
		</property>
	</bean>
</beans>
