开发者

Is stateless session thread safe?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜