-->
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: Problem with transaction.commit
PostPosted: Tue Jul 25, 2006 8:39 am 
Newbie

Joined: Tue Jul 25, 2006 7:54 am
Posts: 1
Hi,

I'm developing a web app with oracle, hibernate and jsf and i'm having the following problem:

first, each user in our app would be associated with a different session. As for now we have just one test user and so my session is lasting fot the whole of the user session. I've read a lot about this and i do know it's bad. On the other hand lazy loading is essential for the app and as i read:
"if your session is closed then lazy loading will not work".

having that in mind the problem is:
i load e.g. two objects in the session. Then i try to create a new object. When the transaction is committed i can see the following in the console:
-- insert query for the new object
-- two update queries
And then nothing happens. The next line of code is never executed.

When i evict the two objects from the session, the problem is gone. But i do this manually and it's certainly not the solution.

Can anyone tell me the reason for that happening?

Thanks for the help in advance.


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.