4

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.

  • 4
    Please stop adding "Thanks" to all your answers. Thank people by upvoting good questions and answers when you come across them, but *stop adding "thanks"*. Also, see http://meta.stackexchange.com/questions/2950/should-hi-thanks-taglines-and-salutations-be-removed-from-posts – Lasse V. Karlsen Aug 02 '11 at 20:01
  • 5
    "Thanks" is considered part of a tagline/signature, and there are numerous posts on meta about this not being allowed. If the previous link didn't do it for you, here's another one - http://meta.stackexchange.com/questions/81978/automatic-signature - or this one - http://meta.stackexchange.com/questions/38570/is-adding-a-signature-considered-spamming – Lasse V. Karlsen Aug 02 '11 at 21:04
  • 5
    Please don't use signatures or taglines in your posts. Every post you make is already "signed" with your standard user card, which links directly back to your user page. http://stackoverflow.com/faq#signatures – Robert Harvey Aug 02 '11 at 21:36
  • 2
    "Thanks" is considered as such. There really isn't more to say on this issue. – Lasse V. Karlsen Aug 02 '11 at 21:44
  • @Lasse V. Karlsen: Thanks for freezing my account. (I have wrote an email to stackexchange team asking them to delete all of my accounts, so this is my last comment on your site) –  Aug 12 '11 at 01:59
  • According to what I can see your suspension is lifted. – Lasse V. Karlsen Aug 12 '11 at 07:08

1 Answers1

7

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.

RasmusKL
  • 891
  • 4
  • 16