-->
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.  [ 2 posts ] 
Author Message
 Post subject: What exactly is unsafe use of the session
PostPosted: Tue Jul 26, 2005 10:49 pm 
Senior
Senior

Joined: Thu May 12, 2005 11:40 pm
Posts: 125
Location: Canada
I'm getting some AssertionFailures (collection not processed by flush) that I can't seem to understand the source of. Before I go trying to produce a test case, could someone enlighten me about:

1) What exactly is unsafe use of the session.
2) What sort of things could cause a collection not processed by flush AssertionFailure.

It would help me to try and frame the problem in the context of my application. Right now I know something is going wrong, but I have no idea what or why, nor where to start looking.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 27, 2005 11:01 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
1) Not thread safe
2) Don't use session if you have had an exception.
3) Always use approrpiate Transaction management code idiom(s).

There are ways around the above items but apply as a general guideline.


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

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.