-->
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: problem with changes made by stored procedure in transaction
PostPosted: Mon Nov 13, 2006 11:28 am 
Newbie

Joined: Mon Nov 13, 2006 10:41 am
Posts: 2
hi,
I'm using hibernate 3.1 adn oracle 10g.

During any transaction i call a stored procedure (in EJB1) that modify a register in DB(in EJB2), immediatly and under same transaction(in EJB1), I read the record, but I cant see the changes.

The problem is that apparently, when calling store procedure this releases to the connection, the connection is lost.

There is some form to solve this?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 13, 2006 4:58 pm 
Newbie

Joined: Mon Nov 13, 2006 10:41 am
Posts: 2
Problem:

Unfortunately, even though the SQL statements are being sent to the database, and this all happens within the same transaction, the second select retrieves stale data (from de cache session), as if the previous execute stored procedure had never happened

Solution:


To use refresh method for retrieve persistents objets from de DataBase.


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.