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

<objects xmlns="http://www.springframework.net"
         xmlns:db="http://www.springframework.net/database"
         xmlns:tx="http://www.springframework.net/tx">


  <!-- Imports application configuration -->
  <import resource="assembly://Spring.TxQuickStart/Spring.TxQuickStart/application-config.xml"/>
  
  <!-- Imports additional aspects -->
  <!--
  <import resource="assembly://Spring.TxQuickStart.Tests/Spring.TxQuickStart/aspects-config.xml"/>
  -->
  
  
  <!-- Database Providers -->
  <db:provider id="DebitDbProvider"
               provider="System.Data.SqlClient"
               connectionString="Data Source=MARKT60\SQL2005;Initial Catalog=CreditsAndDebits;User ID=springqa; Password=springqa"/>

  <db:provider id="CreditDbProvider"
               provider="System.Data.SqlClient"
               connectionString="Data Source=MARKT60\SQL2005;Initial Catalog=CreditsAndDebits;User ID=springqa; Password=springqa"/>
  
  <!-- for .NET 1.1
  <db:provider id="DebitDbProvider"
               provider="SqlServer-1.1"
               connectionString="Data Source=MARKT60\SQL2005;Database=CreditsAndDebits;User ID=springqa;Password=springqa;Trusted_Connection=False"/>

  <db:provider id="CreditDbProvider"
               provider="SqlServer-1.1"
               connectionString="Data Source=MARKT60\SQL2005;Database=CreditsAndDebits;User ID=springqa;Password=springqa;Trusted_Connection=False"/>
  -->
               
  <alias name="DebitDbProvider" alias="CreditDbProvider"/>

  <!-- Transaction Manager if using a single database that contain both credit and debit tables -->
  <object id="transactionManager" 
          type="Spring.Data.Core.AdoPlatformTransactionManager, Spring.Data">
    <property name="DbProvider" ref="DebitDbProvider"/>
  </object>

  <!-- Transaction aspect -->
  
  <tx:attribute-driven/>

</objects>