I am getting the same exception, but when I do an update.  

We are using the JTA transaction manager.  We have configured Castor to use the JTA 
transaction, and the update works fine it's the only transaction happening.  However, 
it fails when we have Castor join a transaction is progress.  We have other areas 
where Castor is joining a transaction in progress, yet updates successfully.  After 
stepping through the code, I have been able to identify that an update lock is 
acquired, but have not been able to identify where or why it would indicate there is a 
persist.writeTimeout error occurring.

Vincent Techeira

-----Original Message-----
From: Bruce Snyder [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 3:27 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] LockNotGrantedException persist.writeTimeout


This one time, at band camp, Tatjana Manych said:

TM>"scope" was a really good hint!!!
TM>I solved my problem now... thanks a lot!
TM>
TM>The problem was, that I had the object I wanted to delete in two
TM>transactions at the same time. I now closed one of those and it works.
TM>
TM>Isn`t it possible to have one object in two transactions? Is there any
TM>way?
TM>It would be really usefull for me, if this could be realized: I want to
TM>have one transaction over the whole application for the lazy loading and
TM>another for my delete-, update- and insert-functions.
TM>Can I use the "shared"-Field in org.exolab.castor.jdo.Database
TM>therefore?

This type of functionality would require Castor to handle nested
transactions.  I've never even considered implementing this simply
because this type of functionality should be using a real transaction
manager. The likes of which can be found in Tyrex (http://tyrex.sf.net/)
or any J2EE application server.

Bruce
-- 
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

----------------------------------------------------------- 
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