开发者

Is stateless session thread safe?

开发者 https://www.devze.com 2023-03-23 00:39 出处:网络
I know开发者_开发问答 ISession is not thread safe. Is IStatelssSession also not thread safe? I guess the answer is no. I did a quick search but didn\'t find a reference for this.

I know开发者_开发问答 ISession is not thread safe. Is IStatelssSession also not thread safe? I guess the answer is no. I did a quick search but didn't find a reference for this.

Thanks.


The StatelessSessionImpl holds a ConnectionManager which holds an IDbConnection - SqlConnection is not thread-safe, so that would be no.

Although the NH trunk code documentation does not specific whether or not it is.

Edit: The code also shows no thread synchronization and it also holds an ITransaction.

0

精彩评论

暂无评论...
验证码 换一张
取 消