RE: [AltRMI] Two way weak hashmap for distributed garbage collection

2002-02-16 Thread Gerhard Froehlich
>-Original Message- >From: Paul Hammant [mailto:[EMAIL PROTECTED]] >Sent: Saturday, February 16, 2002 2:22 PM >To: Jakarta Commons Developers List >Subject: Re: [AltRMI] Two way weak hashmap for distributed garbage >collection > > >Juozas, > >Thanks but

Re: [AltRMI] Two way weak hashmap for distributed garbage collection

2002-02-16 Thread Paul Hammant
Juozas, >I 99% sure RMI distributed GC implementation baset on "finalize()", > Not in 1.3.1 nor in 1.4 (I have checked). There are some 20 other uses though. This bug http://developer.java.sun.com/developer/bugParade/bugs/4148454.html and others show why finalize() is dodgy. - Paul -- T

Re: [AltRMI] Two way weak hashmap for distributed garbage collection

2002-02-16 Thread Juozas Baliuka
- Original Message - From: "Paul Hammant" <[EMAIL PROTECTED]> To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]> Sent: Saturday, February 16, 2002 2:21 PM Subject: Re: [AltRMI] Two way weak hashmap for distributed garbage collection > Juozas,

Re: [AltRMI] Two way weak hashmap for distributed garbage collection

2002-02-16 Thread Juozas Baliuka
I 99% sure RMI distributed GC implementation baset on "finalize()", but I can implement some for client side today. it can be this kind : interface CleanupListener { public vaid onCleanup( Object key ); // object must be mapped, because object will be invalidated before this method call

Re: [AltRMI] Two way weak hashmap for distributed garbage collection

2002-02-16 Thread Paul Hammant
Juozas, Thanks but I have had an on/off relationshp with finalize() from 1998 onwards. Sun even give advice on why it should not be used. It is a WeakReference soltution I am looing for. - Paul -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: [AltRMI] Two way weak hashmap for distributed garbage collection

2002-02-16 Thread Michael Smith
> -Original Message- > From: Paul Hammant [mailto:[EMAIL PROTECTED]] > I have searched for, but cannot find, a posting in this mail > list some while ago that offered a "two way hashmap". We > think we might be able to use it for distributed garbage > collection. [snip] > Does anyone know

Re: [AltRMI] Two way weak hashmap for distributed garbage collection

2002-02-16 Thread Juozas Baliuka
Hi, It some implementation in simplestore "Cashe", but it is not useful for distributed GC. I think there is more trivial way to implement ditributed GC. 1. Client creates Object, server adds reference SomeSubConstructor(Server server ){ // internal implementation calls this server.addRefer

[AltRMI] Two way weak hashmap for distributed garbage collection

2002-02-16 Thread Paul Hammant
Folks, I have searched for, but cannot find, a posting in this mail list some while ago that offered a "two way hashmap". We think we might be able to use it for distributed garbage collection. Background : AltRMI creates a clientside stub for each server side facade reference in use. On th