<?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="JTA">
		<property name="UserTransaction" value="UserTransaction"/>
		<dataSource type="JNDI">
			<property name="DataSource" value="jdbc/testDS1"/>
		</dataSource>
<!--				 <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/InetOrgPerson.xml"/>

</sqlMapConfig>
