Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 82205 invoked from network); 1 Apr 2005 17:45:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Apr 2005 17:45:47 -0000 Received: (qmail 99280 invoked by uid 500); 1 Apr 2005 17:45:46 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 99246 invoked by uid 500); 1 Apr 2005 17:45:45 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 99233 invoked by uid 99); 1 Apr 2005 17:45:45 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_60_70,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.osn.state.oh.us (HELO MAIL.osn.state.oh.us) (66.145.203.12) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 01 Apr 2005 09:45:44 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C536E2.9FB1C921" Subject: Serialization of Proxies revisited Date: Fri, 1 Apr 2005 12:45:41 -0500 Message-ID: <316E5B943771D311BAC500805FD7A07804127069@MAIL.osn.state.oh.us> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Serialization of Proxies revisited Thread-Index: AcU24p9yQRrk8LgzSIq+GMO1QlEIxw== From: "Clute, Andrew" To: "OJB Developers List" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C536E2.9FB1C921 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am sure this conversation has been had before, but with the introduction of the new ProxyFactory, I think it is worth revisiting. =20 The question is: what is the best way to handle the serialization of Proxies (both reference and collections). =20 The current pattern was to let the JDK Proxy serialize as normal, with a reference to a PBKey. After being restored and interrogated, the Proxy would reconnect to a PersistenceBroker (in whatever VM it was in) and materialize the object. =20 Is this the pattern that should continue forward? If so, then a change will need to be made to allow the IndirectionHandler to maintain a non-transient reference to a PCKey (is this ok?). =20 Other potential options are to always null out references and collections, or to fully populate references and collections. Both make the serialized object completely detached, and non-dependant on having the second VM be able to work with OJB. =20 This could also be configurable....there could be Strategies for all 3, and the user could choose which is best for their use case. =20 Thoughts? =20 -Andrew =20 =20 =20 =20 ------_=_NextPart_001_01C536E2.9FB1C921--