-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: NonUniqueObjectException with simultaneous users
PostPosted: Wed Jul 26, 2006 6:33 pm 
Newbie

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 ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.