You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Gilles Bayon (JIRA)" <ib...@incubator.apache.org> on 2005/11/30 22:21:31 UTC
[jira] Closed: (IBATISNET-128) Multiple Thtreads cannot open separate connections/transactions
[ 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:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira