Greetings everyone,
I just ran into interesting situation with OJB version 1.0. I get a
PersistenceBroker and call beginTransaction(). Then I call store() and
pass an object, next I got unique ID from that object (populated from
Oracle sequence by OJB) and pass it to a stor proc that I invoke via a
connection acquired from the PersistenceBroker. Last, I commit the
transaction.
Stor proc blows up because it cannot find a record in db with ID passed. I
started debugging OJB to discover that no "INSERT" statement is executed
when I do PersistenceBroker.store(object). Turns out, OJB "caches"
statements before I issue commitTransaction() and then releases them at
once. But it doesn't wait to call stor proc.
So here is the situation: withing a scope of a transaction OJB doesn't
call database upon executing PersistenceBroker.store(object).
How do I force OJB to make a call to database?
I need it before transaction is committed so that I could call stor procs
withing the scope of the same transaction.
Any suggestions are highly appreciated.
Yuriy
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]