Armin,
The basic reason why I had to resort to empty implementation in the first place is that with default cache implementation in rc6, the mapping between m:n relations was automatically getting deleted from the mapping tables. I assumed that it was because the default object cache was letting garbage collector clean up objects and when collections of a main object was garbage collected and main object commited, because of missing collection the ODMG layer was removing mapping table (indirection-table) entries.
Or could it be because I wasn't using any collection proxies then?
Any response will be immensely helpful and highly appreciated.
Reagrds Ashish
Armin Waibel wrote:
Ashish Rangole wrote:
It seems like it is not there yet in v1.0.1. Can it be expected in v1.0.2 and when it is coming out?
It's funny, some month ago I changed ObjectCacheEmptyImpl no longer support circular references (version 1.8 to 1.9), because user point out that "empty" indicate a plain noop-ObjectCache implementation.
I recommend to use ObjectCachePerBrokerImpl which supports circular references and clear it's pool on rollback or PB.close().
So, if you handle the PB instances in recommended way (lookup from PBF, make your action, close after use), this implementation should fit your requirements.
Hi Armin,
Just to double check, is this true even if I use ODMG, but get the PB broker to query the object to be read/write with in the ODMG transaction which is closed after the operation (and I understand this closes the broker by itself).
Assume you get the PB instance with
((TransactionExt) tx).getBroker()
yep, on ODMG level a Transaction.commit/rollback close the internal used PB instance of Transaction implementation class.
regards, Armin
Thanks for your response.
Ashish
--------------------------------------------------------------------- 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]
-- -------------------------------------------------- Ashish Rangole Vexcel Corporation - Image Information Engineering 1690 38th Street, Boulder CO 80301, USA phone: 303-583-0286 fax: 303-583-0246 Vexcel's home page: http://www.vexcel.com -------------------------------------------------- "What hobbyist can put 3-man years into programming, finding all bugs, documenting his product and distribute for free?" -- Bill Gates, An Open Letter to Hobbyists, 1976
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
