Ref.: NServiceBus.Core.dll v. 2.0.1329.2, NHibernate.dll v. 2.1.2.400
Hi everybody,
I have this configuration file for configuring NHibernateSagaPersister:
<NHibernateSagaPersisterConfig UpdateSchema="true">
<NHibernateProperties>
<add Key="connection.provider" Value="NHibernate.Connection.DriverConnectionProvider" />
<add Key="connection.driver_class" Value="NHibernate.Driver.OracleDataClientDriver" />
<add Key="connection.connection_string" Value="Data Source=XXX; User Id=YYY; Password=ZZZ" />
<add Key="dialect" Value="NHibernate.Dialect.Oracle10gDialect" />
<add Key="current_session_context_class" Value="NHibernate.Context.WebSessionContext" />
</NHibernateProperties>
</NHibernateSagaPersisterConfig>
I have set the “current_session_context_class” parameter to "NHibernate.Context.WebSessionContext" but the problem is that the NHibernate context of the instance object SagaPersister is always ThreadStaticSessionContext type.
Is there a reason for this or I wrong something in the parameter definition in the configuration file?
Thanks in advance.
Regards.
Diego Parolin