Discussion:
[nhusers] Issue with multiple sessions in NHibernate
Thenaruvi Vetriyarasu
2017-11-10 08:28:10 UTC
Permalink
Hi All,

We have our web application built using NHibernate

When there multiple users using the web application, the NHibernate session
closed in one session affects the other, hence error messages like ISession
Closed is thrown. Similarly, when there are users updating data in the
screens that uses NHibernate, errors like 'This row was already modified or
deleted by another user ...' are thrown.

Any ideas to solve this issue will help us lot.

Thanks,
Thenaruvi
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
Gunnar Liljas
2017-11-10 13:53:39 UTC
Permalink
You should never share a session. It should only live during one request.

The other thing sounds like a concurrency issue. Need more details.

/G

2017-11-10 9:28 GMT+01:00 Thenaruvi Vetriyarasu <
Post by Thenaruvi Vetriyarasu
Hi All,
We have our web application built using NHibernate
When there multiple users using the web application, the NHibernate
session closed in one session affects the other, hence error messages like
ISession Closed is thrown. Similarly, when there are users updating data in
the screens that uses NHibernate, errors like 'This row was already
modified or deleted by another user ...' are thrown.
Any ideas to solve this issue will help us lot.
Thanks,
Thenaruvi
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
Loading...