<?xml version="1.0" encoding="${velocityEncodingOutput}"?>
<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container//EN" "http://www.seasar.org/dtd/components.dtd">
<components namespace="j2ee">
	<component name="transactionManager" class="org.seasar.extension.jta.TransactionManagerImpl"/>
	<component name="requiredTx"         class="org.seasar.extension.tx.RequiredInterceptor"/>
	<component name="requiresNewTx"      class="org.seasar.extension.tx.RequiresNewInterceptor"/>
	<component name="mandatoryTx"        class="org.seasar.extension.tx.MandatoryInterceptor"/>

    <component name="xaDataSourceImpl"   class="org.seasar.extension.dbcp.impl.XADataSourceImpl">
        <property name="driverClassName">"${dbJdbcDriver}"</property>
        <property name="URL">"${dbJdbcUrl}"</property>
        <property name="user">"${dbJdbcUsername}"</property>
        <property name="password">"${dbJdbcPassword}"</property>
    </component>
    
    <component name="xaDataSource"   class="org.asyrinx.brownie.jdbc.logger.LogXADataSource" >
    	<arg>xaDataSourceImpl</arg>
    	<arg>"XADS"</arg>
    </component>
    
    <component name="connectionPool"     class="org.seasar.extension.dbcp.impl.ConnectionPoolImpl">
        <property name="timeout">600</property>
        <property name="maxPoolSize">10</property>
        <property name="XADataSource">xaDataSource</property>
        <destroyMethod name="close"/>
    </component>
    
    <component name="dataSource"        class="org.seasar.extension.dbcp.impl.DataSourceImpl">
    	<arg>connectionPool</arg>
    </component>
</components>
