Joined: Wed Jul 26, 2006 5:49 pm Posts: 2
|
Hello,
I use Hibernate 3.1.3 and I have some problem when simultaneous users connect to my application.
I use "session-per-request-with-detached-objects" pattern.
With only one user connected (one thread at a time) :
when I re-attach objects from one hibernate session to an other every thing work fine.
With simultaneous user connected (several thread at the same time) :
The application throw a NonUniqueObjectException. It seems that a hibernate session is shared between threads
The opening and closing of hibernate session is managed by Spring 1.2.5 and I use SessionFactory.getCurrentSession() to retreive my session in each Thread.
I put "hibernate.current_session_context_class=thread" in my hibernate property file but there's no change
Any idea ?
|
|