Hi,

Armin wrote:

> No, problem is when object was only pushed to cache it's not possible to 
> query the object and you run into the same problem as before.Thanks.

If I under stand correctly then using query by Identity with the Broker Api will first 
query the cache, so if the object was cached I could retrieve it.

is there some way I could use it?

Thanks Again for the reponses,

-----Original Message-----
From: Armin Waibel [mailto:[EMAIL PROTECTED]
Sent: Monday, February 09, 2004 5:08 PM
To: OJB Users List
Subject: Re: Transaction Problem.


Hi,

Ziv Yankowitz wrote:

> Hi,
> 
> Thanks for the response.
> 
> if I understand correctly the flush writes the object to the db and cache.

yep!

> Is there a way to write only to the cache and not to the db and then when commit 
> accurse the db will be hit.

No, problem is when object was only pushed to cache it's not possible to 
query the object and you run into the same problem as before.

regards,
Armin

> 
> Thanks.
> 
> -----Original Message-----
> From: Armin Waibel [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 09, 2004 4:59 PM
> To: OJB Users List
> Subject: Re: Transaction Problem.
> 
> 
> Hi,
> 
> Ziv Yankowitz wrote:
> 
>>Folks,
>>
>>I'm using ODMG API .
>>
>>I'm trying to insert an object and query the object in the same transaction before 
>>the object was committed is this possible.
> 
> 
> You have to use a proprietary extension method of Transaction:
> ((TransactionExt) tx).flush()
> 
> regards,
> Armin
> 
> 
>>thanks.
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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


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

Reply via email to