From dev-return-8395-apmail-geronimo-dev-archive=geronimo.apache.org@geronimo.apache.org Wed Sep 01 12:34:40 2004 Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 17508 invoked from network); 1 Sep 2004 12:34:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Sep 2004 12:34:39 -0000 Received: (qmail 18428 invoked by uid 500); 1 Sep 2004 12:34:31 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 18383 invoked by uid 500); 1 Sep 2004 12:34:31 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@geronimo.apache.org Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 18370 invoked by uid 99); 1 Sep 2004 12:34:31 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [205.207.148.251] (HELO aci.on.ca) (205.207.148.251) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 01 Sep 2004 05:34:30 -0700 Received: from [192.168.1.6](xtreme-18-152.dyn.aci.on.ca[69.17.177.152] port=2476) (2033 bytes) by aci.on.ca([205.207.148.251] port=25) via TCP with esmtp (sender: ) id for ; (dest:remote)(R=bind_hosts)(T=inet_zone_bind_smtp) Wed, 1 Sep 2004 08:34:27 -0400 (EDT) (Smail-3.2.0.118 2004-May-31 #1 built 2004-May-31) Message-ID: <4135C25E.2000601@activation.net> Date: Wed, 01 Sep 2004 08:36:46 -0400 From: John Woolsey User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a3) Gecko/20040817 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@geronimo.apache.org Subject: Re: Socket Fun References: <4135305E.9090904@activation.net> <4135AD4D.5070607@earthlink.net> In-Reply-To: <4135AD4D.5070607@earthlink.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Good idea but I am using different ObjectOutputStreams. The first one is to a byte array and the other is to a Socket Stream. The difference is 4 bytes 179 for the socket and 174. I am going to guess it is a length variable that is added to the byte array stream. I have gone to completely serializing outside the socket stream which works, but I thought the difference was interesting and worth bringing up. - bfn - JAW adam wrote: > Referencing by ObjectOutputStream. The second time you serialize the > object out over the stream, ObjectOutputStream replaces it with a > reference back to the one it just sent. In one of the older JVMs, > this kept things that were serialized from being garbage collected, > although that's been fixed now. > > Adam > > John Woolsey wrote: > >> I am working on my RMI implementation and I was using the >> ObjectOutputStream. I made a function serialize that I used to find >> the length of the outbound data. Then I wrote the same object to a >> socket. The sizes where different ?!? Anyone have any idea why? >> >> >> - thanx - JAW >> > >