Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Integration.Tests/Data
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv27897/test/Spring/Spring.Data.Integration.Tests/Data
Modified Files:
DTCAppContext.xml DTCTests.cs
Log Message:
TxExample - fix exception advice dsl - was using old syntax, add logging advice in addition
Add change in exception translation dsl to breaking changes.
Index: DTCTests.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Integration.Tests/Data/DTCTests.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** DTCTests.cs 7 Aug 2007 21:24:03 -0000 1.6
--- DTCTests.cs 13 Oct 2007 22:10:44 -0000 1.7
***************
*** 24,27 ****
--- 24,28 ----
using System.Collections.Specialized;
using NUnit.Framework;
+ using Spring.Aop.Config;
using Spring.Context;
using Spring.Context.Support;
***************
*** 47,50 ****
--- 48,52 ----
LogManager.Adapter = new ConsoleOutLoggerFactoryAdapter(new NameValueCollection());
NamespaceParserRegistry.RegisterParser(typeof(TxNamespaceParser));
+ NamespaceParserRegistry.RegisterParser(typeof(AopNamespaceParser));
string ctxName = "DTCAppContext.xml"; // for .NET 2.0
//string ctxName = "DTC1.1AppContext.xml"; // for .NET 1.1
Index: DTCAppContext.xml
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Integration.Tests/Data/DTCAppContext.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** DTCAppContext.xml 17 Sep 2007 19:18:50 -0000 1.7
--- DTCAppContext.xml 13 Oct 2007 22:10:44 -0000 1.8
***************
*** 2,6 ****
<objects xmlns='http://www.springframework.net'
xmlns:d="http://www.springframework.net/database"
! xmlns:tx="http://www.springframework.net/tx">
--- 2,7 ----
<objects xmlns='http://www.springframework.net'
xmlns:d="http://www.springframework.net/database"
! xmlns:tx="http://www.springframework.net/tx"
! xmlns:aop="http://www.springframework.net/aop">
***************
*** 10,15 ****
<d:provider id="DebitDbProvider"
! provider="SqlServer-2.0"
! connectionString="Data Source=MARKT60\SQL2005;Initial Catalog=CreditsAndDebits;Persist Security Info=True;User ID=springqa;Password=springqa"/>
<!--
connectionString="Data Source=NYCSUMPOLLL\SQLEXPRESS;Initial Catalog=Debits;Integrated Security=True;Pooling=False"/>
--- 11,16 ----
<d:provider id="DebitDbProvider"
! provider="SqlServer-2.0"
! connectionString="Data Source=MARKT60\SQL2005;Initial Catalog=Debits;Persist Security Info=True;User ID=springqa;Password=springqa"/>
<!--
connectionString="Data Source=NYCSUMPOLLL\SQLEXPRESS;Initial Catalog=Debits;Integrated Security=True;Pooling=False"/>
***************
*** 18,22 ****
<d:provider id="DbProvider"
provider="SqlServer-2.0"
! connectionString="Data Source=MARKT60\SQL2005;Initial Catalog=CreditsAndDebits;Persist Security Info=True;User ID=springqa;Password=springqa"/>
<!--
connectionString="Data Source=NYCSUMPOLLL\SQLEXPRESS;Initial Catalog=Credits;Integrated Security=True;Pooling=False"/>
--- 19,23 ----
<d:provider id="DbProvider"
provider="SqlServer-2.0"
! connectionString="Data Source=MARKT60\SQL2005;Initial Catalog=Credits;Persist Security Info=True;User ID=springqa;Password=springqa"/>
<!--
connectionString="Data Source=NYCSUMPOLLL\SQLEXPRESS;Initial Catalog=Credits;Integrated Security=True;Pooling=False"/>
***************
*** 102,105 ****
--- 103,131 ----
-->
+ <object name="loggingAdvice" type="Spring.Aspects.Logging.SimpleLoggingAdvice, Spring.Aop">
+ <property name="logUniqueIdentifier" value="true"/>
+ <property name="logExecutionTime" value="true"/>
+ <property name="logMethodArguments" value="true"/>
+ <property name="Separator" value=";"/>
+ <!--
+ <property name="LogLevel" value="Debug"/>
+ -->
+ </object>
+
+ <object id="txAttributePointcut" type="Spring.Aop.Support.AttributeMatchMethodPointcut, Spring.Aop">
+ <property name="Attribute" value="Spring.Transaction.Interceptor.TransactionAttribute, Spring.Data"/>
+ </object>
+
+ <aop:config>
+ <!--
+ <aop:advisor id="exceptionProcessAdvisor" order="1"
+ advice-ref="exceptionAdvice"
+ pointcut-ref="txAttributePointcut"/>
+ -->
+
+ <aop:advisor id="loggingAdvisor" order="2"
+ advice-ref="loggingAdvice"
+ pointcut-ref="txAttributePointcut"/>
+ </aop:config>
</objects>
\ No newline at end of file
|