I'll go with this solution then.  Thank you very much.

Zarar


On 10/9/06, Gilles Bayon <[EMAIL PROTECTED]> wrote:
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