Finally, I resolved my issue as following changes:
I have added tx annotation for NHibernate transaction :
<tx:attribute-driven transaction-manager="transactionManager" proxy-target-type="true"/>
For Global Transaction I have changed my spring.config file as following and removed advisor 'serviceOperation' of NHibernate Transaction.:
<aop:config>
<aop:advisor pointcut-ref="serviceOperationGlobal" advice-ref="txAdviceGlobal"/>
Changes in my code:
namespace AssemblyName.Core.Service.Implementation
{
public class DemoService
{
[Transaction(TransactionPropagation.Required)]
public void demo()
{
save(model); //This is nHibernate transaction
SchedulerManager.GetInstance.save(id); //This is related to quartz.
}
}
}
Edited: By doing this Other problem introduced. It is running fine on many pc but in some pc it shows error : Connection was disconnected or not open, when I do operation related with demo().
I have configured all settings that need to run MS DTC.