Return-Path: Delivered-To: apmail-jakarta-hivemind-user-archive@www.apache.org Received: (qmail 45303 invoked from network); 20 Oct 2004 22:13:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Oct 2004 22:13:52 -0000 Received: (qmail 49150 invoked by uid 500); 20 Oct 2004 22:13:51 -0000 Delivered-To: apmail-jakarta-hivemind-user-archive@jakarta.apache.org Received: (qmail 49077 invoked by uid 500); 20 Oct 2004 22:13:51 -0000 Mailing-List: contact hivemind-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: hivemind-user@jakarta.apache.org Delivered-To: mailing list hivemind-user@jakarta.apache.org Received: (qmail 49062 invoked by uid 99); 20 Oct 2004 22:13:50 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [208.147.67.98] (HELO mail1.mckhboc.com) (208.147.67.98) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 20 Oct 2004 15:13:48 -0700 Received: from 139.177.6.216 by mail1.mckhboc.com with ESMTP (Outbound Mail1 SMTP Relay (MMS v5.6.1)); Wed, 20 Oct 2004 14:04:20 -0700 X-Server-Uuid: E618535E-AE39-475D-9091-BC1AF22CB2F2 Received: by smtpout.hboc.com with Internet Mail Service (5.5.2657.72) id ; Wed, 20 Oct 2004 17:03:19 -0400 Received: from atlexc91nthub.hboc.com (ims2.mckesson.com [139.177.6.115] ) by atlexcsmtpa.hboc.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id TJ17HFA9; Wed, 20 Oct 2004 17:03:08 -0400 Received: by ims2.mckesson.com with Internet Mail Service (5.5.2657.72) id ; Wed, 20 Oct 2004 17:04:02 -0400 From: "Hensley, Richard" To: "'hivemind-user@jakarta.apache.org'" X-Mailer: Internet Mail Service (5.5.2657.72) Message-ID: Subject: Blending HiveMind Services and POJO's Date: Wed, 20 Oct 2004 17:03:58 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) X-WSS-ID: 6D680D581SO23541833-01-01 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I have an authenticate hivemind service. The job of that service is to return an implementation of the User interface. The User implementation is not a hivemind object, it is a POJO. The User implementation requires another hivemind service to return a list of values when requested. This is all easy up to this point because the authenticate method can inject the required services into the User implementation at construction time. Now comes the problem. The User implementation is Serializable, references to services are transient properties of the User implementation, so how does the User implementation reacquire references to the services after being serialized and deserialized. Right now I have basically implemented static global access to the hivemind registry. Is there a better way? Richard --------------------------------------------------------------------- To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: hivemind-user-help@jakarta.apache.org