I have a method running under spring transaction which calls two stored procedures.
- First stored procedure executes successfully, but data is not committed yet (Because of transaction)
- Now, Second stored procedure tries to query the previous data which is not available.
Can somebody give me pointers on how to share the uncommitted data to the (second)stored procedure.
Note:Cant use isolation uncommitted as i am using oracle database and it doesn't support the same.
PS :- when searched i got answers which asked me to flush the hibernate session. But didn't work for me.
preguntado el 05 de mayo de 13 a las 18:05
Use one stored procedure. If you can't do that, commit after the first stored procedure, as the second SP needs to be able to query the first's outcome, so that automatically is your tx boundary.