A CallContextSessionStore is not 100% safe in web environnement.

A better solution in your thread code is :

MyBackgroundCodeTask()
{
  IDalSession session = sqlMapper.CreateSqlMapSession();
  session.OpenConnection();
  IMappedStatement myStatement = GetMappedStatement("statementName",
parameterObject);

 ... myStatement.ExecuteQueryForObject(session, parameterObject);

 session.CloseConnection();

}


--
Cheers,
Gilles

<a href="http://www.amazon.com/gp/registry/6JCP7AORB0LE";>Wish List</a>

Reply via email to