1. This workaround worked. Ideally we would like to turn castor caching off - we use JCS for caching - it gives us better control over the caching. But
seems like it is impossible to turn caching off for long transactions.
Yes, I believe that long transactions can't work without Castor's internal caching. Regarding JCS, are you using it for clustering? One of the features that is being planned for the next major version of Castor is a plugable (distributed) cache architecture that supports clustering. Would you be interested in sharing your insights about how we might be able to use JCS with Castor, and perhaps like to help out?
2. Another workaround that also works and which I discovered from another post is to clone the object before updating - though I can't understand why that solution works.
Seems like an application would take a severe memory hit if it has to clone every persistence object before updating. Not sure of the Castor internals, but that might result in multiple copies of similar objects in the cache.
Does anyone know if there are design diagrams for Castor? Trying to interpret everything from the code alone is quite a task.
3. db.load() won't work for us - we have too many updates and loading the object each time would be too costly.
I was under the impression that db.load() attempts to access the cache before accessing the db...?
4. It would be great to have one central place which gives the final word on known bugs and workaround(s) for every version. I have always been able to find the solution/workaround on the mailing list but it also very frequently has suggestions and it takes a long while to try out all the suggestions and arrive at the perfect solution/workaround...maybe there is already such a place and I haven't discovered it.
True. We do have a Castor WIKI, and I forgot that I did writeup the solution in my last email on it:
http://www.brainopolis.com/castorwiki/Wiki.jsp?page=TimestampMismatch
My apologies. I need some more coffee!
Please feel free to add to the WIKI, as anyone can update it and your insights can help others.
Again, please let us know about the JCS stuff as Bruce ([EMAIL PROTECTED]) is starting the refactoring effort for Castor, and I'm going to try to help out the distributed/pluggable cache when I can.
Thanks Mehul! :)
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev