Hi,

>> -----Original Message-----
>> From: Sudhir Bhojwani [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 26, 2003 11:10 PM
>> To: [EMAIL PROTECTED]
>> Subject: Re: [castor-dev] ObjectModifiedException
>> 
>> 
>> I suggest try turning OFF the cache for that particular object mapping.

How do you do this so that long transaction still work ? Using 
<cache-type type="none"/>
in the class-element disables the cache but makes it impossible to use long
transaction.

Henning

>> 
>> Sudhir
>> 
>> -----Original Message-----
>> From: Senthil Rajagopal [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 26, 2003 11:56 AM
>> To: [EMAIL PROTECTED]
>> Subject: [castor-dev] ObjectModifiedException
>> 
>> 
>> Hi,
>> 
>> I am stuck with ObjectModifiedException for quite some time.
>> 
>> I am using long transactions. The first time I load and update a 
>> record it
>> saves fine. The second time I load and try to save, I get the
>> ObjectModifiedException.
>> 
>> Here is a high-level code snippet.
>> 
>> Step 1
>> db=getDatabase();
>> //start transaction.
>> db.load(my object)
>> //close transaction.
>> 
>> Step 2
>> db=getDatabase();
>> //start transaction.
>> db.update(my object)
>> //close transaction.
>> 
>> Step 3
>> 
>> db=getDatabase();
>> //start transaction.
>> db.load(my object)
>> //close transaction.
>> 
>> Step 4
>> db=getDatabase();
>> //start transaction.
>> db.update(my object)
>> //close transaction.
>> 
>> At the end of step 4, I get the exception.
>> org.exolab.castor.jdo.ObjectModifiedException: Transaction 
>> aborted: Object
>> of type GroupInfo with identity appAgentHome has been modified by a
>> concurrent transaction (cache entry is different from database row)
>> 
>> at org.exolab.castor.jdo.engine.SQLEngine.store(SQLEngine.java:882)
>> 
>> ..............................
>> 
>> 
>> I tried changing the dirty checking to "ignore", but that didnt 
>> help. I am
>> not sure if there is something I missing out.
>> 
>> Please help.
>> 
>> Thanks in advance and regards,
>> Senthil
>> 
>> 
>> 
>> 
>> --------------------------------------------------------------
>> Computer Sciences Corporation India Pvt. Ltd., Indore, India
>> 
>> ----------------------------------------------------------- 
>> If you wish to unsubscribe from this mailing, send mail to
>> [EMAIL PROTECTED] with a subject of:
>>         unsubscribe castor-dev
>> 
>> ----------------------------------------------------------- 
>> If you wish to unsubscribe from this mailing, send mail to
>> [EMAIL PROTECTED] with a subject of:
>>         unsubscribe castor-dev
>> 

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to