ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Schall (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Created: (IBATISNET-128) Multiple Thtreads cannot open separate connections/transactions
Date Tue, 29 Nov 2005 21:17:31 GMT
Multiple Thtreads cannot open separate connections/transactions

         Key: IBATISNET-128
         URL: http://issues.apache.org/jira/browse/IBATISNET-128
     Project: iBatis for .NET
        Type: Bug
  Components: DataMapper  
    Versions: DataMapper 1.2.1    
    Reporter: Michael Schall

There was a bug like this fixed for the DataAccess component, but the problem is still in
the DataMapper component.

Inside the IBatisNet.DataMapper.SessionContainer.WindowSessionContainer class, the private
variable _localSqlMapSession is decorated with the ThreadStatic attribute, but it is not declared
as a static variable so the attibute is ignored. 

The DataMapper will only allow a single connection/transaction since there is only one _localSqlMapSession
across all threads.  

Current Code:
		private SqlMapSession _localSqlMapSession = null;
Working Fix:
		private static SqlMapSession _localSqlMapSession = null;

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message