As far as I know, you need to checkpoint() the transaction so that the
data is written to the database.  (a transaction rollback will still
remove this data)  Then you will be able to use queries to find it
again.

Cam.

> -----Original Message-----
> From: Dan Reese [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, 24 January 2003 9:13 AM
> To: OBJ User List
> Subject: Re: Dirty Read Issue
> 
> 
> Hi,
> 
> Does anyone know if OJB is *supposed* to support caching at 
> this level? 
> Or do we need to commit the transaction before attempting to 
> find the object again?
> 
> Thanks,
> Dan
> 
> 
> On Wed, 22 Jan 2003 11:41:17 -0700, "Bill Brooks" 
> <[EMAIL PROTECTED]> said:
> > Hi,
> > 
> > I am working on a project that is using OJB checked out from CVS at 
> > jakarta.apache.org and have been having a good amount of success 
> > (thanks to the OJB developers for their work).  But I am 
> running into 
> > an issue with 'dirty-reads'.
> > 
> > My understanding is that if in the repository.xml file I have 
> > isolation-level="read-uncommitted" set then I can do the following:
> > 
> > 1) start a transaction (using ODMG)
> > 2) create a new object
> > 3) lock the object (with lock mode of WRITE)
> > 4) work with other objects
> > 5) use a finder to select the newly created object (created in step 
> > #2) using non-primary key fields
> > 6) update the object (found in step #5)
> > 7) commit the transaction
> > 
> > The issue that I have is that in step #5 when I try to find 
> the newly 
> > created object, I do not find it.  I have checked the mail archives 
> > but have not run across something that would help me.
> > 
> > Is anyone else having this issue?  Is there some 
> configuration that I 
> > have missed?
> > 
> > Any input would be appreciated.
> > 
> > Bill
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> > 
> 
> -- 
> http://fastmail.fm - IMAP accessible web-mail
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ojb-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to