Return-Path: Delivered-To: apmail-jakarta-hivemind-user-archive@www.apache.org Received: (qmail 31985 invoked from network); 23 Nov 2004 21:44:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Nov 2004 21:44:47 -0000 Received: (qmail 89480 invoked by uid 500); 23 Nov 2004 21:44:46 -0000 Delivered-To: apmail-jakarta-hivemind-user-archive@jakarta.apache.org Received: (qmail 89457 invoked by uid 500); 23 Nov 2004 21:44:45 -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 89443 invoked by uid 99); 23 Nov 2004 21:44:45 -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; Tue, 23 Nov 2004 13:44:39 -0800 Received: from 139.177.6.216 by mail1.mckhboc.com with ESMTP (Outbound Mail1 SMTP Relay (MMS v5.6.1)); Tue, 23 Nov 2004 13:38:05 -0800 X-Server-Uuid: E618535E-AE39-475D-9091-BC1AF22CB2F2 Received: by smtpout.hboc.com with Internet Mail Service (5.5.2657.72) id ; Tue, 23 Nov 2004 16:36:42 -0500 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 WLSTW2J5; Tue, 23 Nov 2004 16:36:37 -0500 Received: by ims2.mckesson.com with Internet Mail Service (5.5.2657.72) id ; Tue, 23 Nov 2004 16:39:48 -0500 From: "Hensley, Richard" To: hivemind-user@jakarta.apache.org, slouet@hotmail.com X-Mailer: Internet Mail Service (5.5.2657.72) Message-ID: Subject: RE: Service instanciation Date: Tue, 23 Nov 2004 16:37:52 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) X-WSS-ID: 6DBD723723C3091941-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 Stefano, Threaded means that you get a new instance for each thread, not each time you call getService(). I'm not sure how to configure HiveMind to do what you want. Richard -----Original Message----- From: Stephane Louet [mailto:slouet@hotmail.com] Sent: Tuesday, November 23, 2004 1:26 PM To: hivemind-user@jakarta.apache.org Subject: Service instanciation I have a newbie question for you guys. I have declared a service point that looks like below: I have used "threaded" because I want a new instance of AttrDefImpl every time I do a .getService( AttrDef.class ). But if I do something like: AttrDef attrDef1 = (AttrDef)registry.getService( AttrDef.class ); attrDef1.setName( "1" ); AttrDef attrDef2 = (AttrDef)registry.getService( AttrDef.class ); attrDef2.setName( "2" ); System.out.println( "attrDef1=" + attrDef1.getName() + ", attrDef2=" + attrDef2.getName() ); I basically get the following attrDef1=2, attrDef2=2. It looks like .getService() returns the same element (a singleton?) every time. I believe I am missing something here ;-) Any help appreciated, Stefano --------------------------------------------------------------------- To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: hivemind-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: hivemind-user-help@jakarta.apache.org