RE: [OJB-developers] ODMG transaction question
Brought to you by:
thma
From: Matt G. <mat...@ss...> - 2002-01-03 10:54:45
|
> -----Original Message----- > From: to...@ma... [mailto:to...@ma...]On Behalf Of > Thomas Mahler > Sent: 03 January 2002 12:18 > To: Matt Goodall > Cc: Objectbridge Developers List (E-mail) > Subject: Re: [OJB-developers] ODMG transaction question snip! > This is definitively a bug in .checkpoint() ! > I assume that exceptions thrown from the lower level PersistenceBroker > API are ignored or not handled correctly during .checkpoint(). Something that I find quite unusual about the ODMG interface, especially org.odmg.Transaction's commit() and checkpoint(), is that its exceptions are all derived from RuntimeException. That makes it easy to miss things ... oh well. > > I have to say, I'm not sure I'd ever use transactions like this, it > > all came about through some test code which *always* aborted the > > transaction. I didn't have the checkpoint() then either. > The intention > > was to leave the database intact after running the test which addded > > data and then retrieved it again - I was just playing with the API > > basically. > > > > But even if it's no realistic scenario: OJB must handle it > correctly!!! True. > Thanks for you detailed report, it will help me to fix this thing > quickly! No problem, glad I can help. Cheers, Matt |