ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles Bayon (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Closed: (IBATISNET-128) Multiple Thtreads cannot open separate connections/transactions
Date Wed, 30 Nov 2005 21:21:31 GMT
     [ http://issues.apache.org/jira/browse/IBATISNET-128?page=all ]
Gilles Bayon closed IBATISNET-128:

    Fix Version: DataMapper 1.3
     Resolution: Duplicate
      Assign To: Gilles Bayon

Already fixed in SVN

> 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
>     Assignee: Gilles Bayon
>      Fix For: DataMapper 1.3

> 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:
For more information on JIRA, see:

View raw message