switched to machine neutral connectionstrings
This commit is contained in:
@@ -56,14 +56,17 @@ namespace Spring.TxQuickStart
|
||||
NamespaceParserRegistry.RegisterParser(typeof(AopNamespaceParser));
|
||||
IApplicationContext context = CreateContextFromXml();
|
||||
IDictionary dict = context.GetObjectsOfType(typeof (IAccountManager));
|
||||
accountManager = context["accountManager"] as IAccountManager;
|
||||
accountManager = context["accountManager"] as IAccountManager;
|
||||
CleanDb(context);
|
||||
}
|
||||
|
||||
private static IApplicationContext CreateContextFromXml()
|
||||
{
|
||||
return new XmlApplicationContext(
|
||||
// use for demoing ado tx manager
|
||||
"assembly://Spring.TxQuickStart.Tests/Spring.TxQuickStart/system-test-local-config.xml"
|
||||
// use for demoing TransactionScope tx manager
|
||||
// "assembly://Spring.TxQuickStart.Tests/Spring.TxQuickStart/system-test-dtc-config.xml"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -14,15 +14,14 @@
|
||||
|
||||
<db:provider id="DebitDbProvider"
|
||||
provider="System.Data.SqlClient"
|
||||
connectionString="Data Source=MARKT60\SQL2005;Initial Catalog=Debits;User ID=springqa; Password=springqa"/>
|
||||
connectionString="Data Source=(local)\SQLEXPRESS;Initial Catalog=Debits;User ID=springqa; Password=springqa"/>
|
||||
|
||||
|
||||
<db:provider id="CreditDbProvider"
|
||||
provider="System.Data.SqlClient"
|
||||
connectionString="Data Source=MARKT60\SQL2005;Initial Catalog=Credits;User ID=springqa; Password=springqa"/>
|
||||
|
||||
|
||||
connectionString="Data Source=(local)\SQLEXPRESS;Initial Catalog=Credits;User ID=springqa; Password=springqa"/>
|
||||
|
||||
|
||||
|
||||
<!-- Transaction Manager if using two databases, one containing the credit table and the other a debit table -->
|
||||
|
||||
@@ -34,9 +33,4 @@
|
||||
<!-- Transaction aspect -->
|
||||
<tx:attribute-driven/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</objects>
|
||||
@@ -9,19 +9,18 @@
|
||||
<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"/>
|
||||
connectionString="Data Source=(local)\SQLEXPRESS;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"/>
|
||||
connectionString="Data Source=(local)\SQLEXPRESS;Initial Catalog=CreditsAndDebits;User ID=springqa; Password=springqa"/>
|
||||
|
||||
<!-- for .NET 1.1
|
||||
<db:provider id="DebitDbProvider"
|
||||
|
||||
Reference in New Issue
Block a user