Return-Path: Delivered-To: apmail-incubator-river-dev-archive@minotaur.apache.org Received: (qmail 60251 invoked from network); 6 Mar 2010 07:22:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Mar 2010 07:22:23 -0000 Received: (qmail 30710 invoked by uid 500); 6 Mar 2010 07:22:07 -0000 Delivered-To: apmail-incubator-river-dev-archive@incubator.apache.org Received: (qmail 30561 invoked by uid 500); 6 Mar 2010 07:22:06 -0000 Mailing-List: contact river-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: river-dev@incubator.apache.org Delivered-To: mailing list river-dev@incubator.apache.org Received: (qmail 30553 invoked by uid 99); 6 Mar 2010 07:22:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Mar 2010 07:22:05 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.163.196.105] (HELO nyx.xs4all.nl) (83.163.196.105) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Mar 2010 07:21:56 +0000 Received: from macmini.qcg.lan ([192.168.99.5]) by nyx.xs4all.nl with esmtp (Exim 4.69) (envelope-from ) id 1NnoKM-0002LZ-8t for river-dev@incubator.apache.org; Sat, 06 Mar 2010 08:21:34 +0100 Message-ID: <4B92027D.7030001@qcg.nl> Date: Sat, 06 Mar 2010 08:21:33 +0100 From: QCG - Sim IJskes User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: river-dev@incubator.apache.org Subject: Re: strange problem with DGC References: <4B8F86B0.6080305@qcg.nl> <4B903484.40701@zeus.net.au> <4B9036BA.8010701@zeus.net.au> <4B903A8B.3010508@zeus.net.au> <4B90E229.6060604@qcg.nl> <4B919A93.3070201@zeus.net.au> In-Reply-To: <4B919A93.3070201@zeus.net.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Peter Firmstone wrote: >> The problem starts when you marshall it in >> BasicInvocationDispatcher.marshalReturn(), and the reply has enough >> latency to arive 'late' at the client side. >> >> In this window the service becomes 'weakly reachable' and if the GC >> kicks in before DgcServer.dirty the object gets finalized. > > Keep a strong reference, to the service (not the proxy), long enough to Indeed, but my point is, that this is so counter-intuitive. It looks like this is completely overlooked by the design of jini. Why? I can't imagine. Everywhere where you have a service that has a factory method for a service, and you don't register the service or save the service reference, this will happen. It has never been documented. It is because GC has become better? Shouldn't we include a fix in the BasicJeriExporter for this? Gr. Sim