Spring.NET with NHibernate and quartz transaction (global transaction
manager) -
Get link
Facebook
X
Pinterest
Email
Other Apps
-
I want to use Global Transaction Manager at my service level.
For example. Namasthan assembly name. Call.seva Implementation {public class demosva {public zero demo} {save (model); // This is the nHibernate transaction SchedulerManager.GetInstance.save (id); // it is related to quartz}}}
What should I do?
If I used the TransactionScope () then it is giving me an error because NHibernateTransaction can not
I
& lt; Object id = "transactionManager" type = "Spring.Data.NHibernate.HibernateTransactionManager, Spring.Data.NHibernate33" & gt; Have used. & Lt; Property Name = "DbProvider" ref = "DbProvider" /> & Lt; Asset Name = "Session Failure" Ref = "NHibernateSessionFactory" /> & Lt; / Object & gt; Edit
: Then I used two transaction managers in the Spring config file:
< Code> & lt; Object id = "transactionManager" type = "Spring.Data.NHibernate.HibernateTransactionManager, Spring.DataNHibernate33" & gt; & Lt; Property Name = "DbProvider" ref = "DbProvider" /> & Lt; Asset Name = "Session Failure" Ref = "NHibernateSessionFactory" /> & Lt; / Object & gt; & Lt; Tx: Advice ID = "txAdvice" transaction-manager = "transactionManager" & gt; & Lt; Tx: blames the account & gt; & Lt; tx: Method Name = "*" /> & Lt; / tx: Explains responsible & gt; & Lt; / tx: Advice & gt; & Lt; Object ID = "Service Operation" type = "Spring.Aop.Support.SdkRegularExpressionMethodPointcut, Spring.Aop" & gt; & Lt; Property Name = "Pattern" Value = "Assembly Name" .core Service.