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: [ThreadStatic] private SqlMapSession _localSqlMapSession = null; Working Fix: [ThreadStatic] private static SqlMapSession _localSqlMapSession = null; -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira