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: Commit and sometimes not
PostPosted: Tue Mar 31, 2009 9:46 am 
Newbie

Joined: Tue Mar 31, 2009 9:27 am
Posts: 1
Hi,
I got a litte problem using hibernate. I'm using it within an axis2 webservice and it works fine so far. But sometimes I reach some strange problems:

Let's assume the following:

We have 2 Webservices called "A" and "B", each having methods "a" and "b".

We have the following information flow:

Method "a" of Service "A" is called, opens a new Transaction, creates some data. After that the Transaction is committed. Then method "a" of Service "B" is called, which will call method "b" of service "A". There a new Transaction is opened and some data is fetched from the database. Sometimes the data which was inserted in service "A" method "a" is not available in the transaction opened in Service A method "b".
If I use the debugger and restart the transaction while debugging, the data is available, so it looks to me as if the commit is done asynchronously. Is that correct? What else can it be?
Thanks.

Regards,

Matthias


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.