|
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
|