<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE sqlMapConfig
	PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"
	"http://ibatis.apache.org/dtd/sql-map-config-2.dtd">

<!--
	LDAP Synchronization Connector (LSC) - http://lsc-project.org
	
	This file configure iBatis to read sqlMap files.
	Settings should be generated here automatically.
	The only section you need to check is the sqlMap entries at the bottom.
-->

<sqlMapConfig>

	<!-- The settings element has a number of configuration switches and properties
		that configure the SQL Maps engine. Most are performance tweaks or resource
		management.  They are pretty self explanatory. The defaults are shown here.
		There can be only one settins element.  -->

	<!-- <settings
	lazyLoadingEnabled="true"
	cacheModelsEnabled="true"
	enhancementEnabled="true"
	maxRequests="512"
	maxSessions="128"
	maxTransactions="32" 
	/> -->

	<transactionManager type="JDBC">
		<dataSource type="SIMPLE">
			<property value="${driver}" name="JDBC.Driver" />
			<property value="${url}" name="JDBC.ConnectionURL" />
			<property value="${username}" name="JDBC.Username"/>
			<property value="${password}" name="JDBC.Password"/>
			<property value="15" name="Pool.MaximumActiveConnections"/>
			<property value="15" name="Pool.MaximumIdleConnections"/>
			<property value="1000" name="Pool.MaximumWait"/>
		</dataSource>
	</transactionManager>

	<!-- Finally, the SQL Maps themselves must be registred with the configuration file.
		Below are some examples of some SQL Map reference elements.  Notice that an
		SQL Map can  be located in the classpath (resource) or at a URL (e.g. file://
		or http://).  There can be any number of sqlMap elements. -->

	<!--
	<sqlMap url="file:/${lsc.config}/sql-map-config.d/Activity.xml"/>
	<sqlMap resource="org/lsc/persistence/xml/Activity.xml"/>
	<sqlMap url="file:/C:/config/FileSqlMap.xml" />
	<sqlMap url="http://www.ibatis.com/maps/WebSqlMap.xml" />
	-->
	<sqlMap url="file:///${lsc.config}/sql-map-config.d/InetOrgPerson.xml"/>
</sqlMapConfig>
