Return-Path: Delivered-To: apmail-jakarta-hivemind-user-archive@www.apache.org Received: (qmail 19896 invoked from network); 2 May 2005 14:19:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 May 2005 14:19:09 -0000 Received: (qmail 66666 invoked by uid 500); 2 May 2005 14:20:33 -0000 Delivered-To: apmail-jakarta-hivemind-user-archive@jakarta.apache.org Received: (qmail 66640 invoked by uid 500); 2 May 2005 14:20:32 -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 66624 invoked by uid 99); 2 May 2005 14:20:32 -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 Unknown (HELO hirame.qlusters.com) (209.88.178.130) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 02 May 2005 07:20:32 -0700 Received: from igorl.qlusters (igorl.qlusters [10.100.0.11]) by hirame.qlusters (8.10.2/8.10.2) with ESMTP id j42EIYC18102 for ; Mon, 2 May 2005 17:18:34 +0300 Subject: Re: Swap implementation during program running From: Igor Laberov To: hivemind-user@jakarta.apache.org In-Reply-To: References: <000801c54dc7$329f52a0$6601a8c0@carmani600m> <1115032570.29740.223.camel@igorl> <1115039607.29739.227.camel@igorl> <1115042417.1783.233.camel@igorl> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 (1.0.3-4) Date: 02 May 2005 17:21:58 +0300 Message-Id: <1115043718.29740.247.camel@igorl> Mime-Version: 1.0 X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Johan, I'm not sure that I understood you. Lets see in example: Let's say that I have service that defined by interface MyInterface. So the scenario is following: Thread 1: MyInterface my = registry.getService(MyInterface.class,"myModule.impl1"); my.invoke1(); ... Here I want to replace the implementation ("myModule.impl1") of MyInterface by new jar that contains next version. After that I suppose that should be called something like builder.processModule()(?) that will re-read the descriptor file Then,in Thread 2: MyInterface my = registry.getService(MyInterface.class,"myModule.impl1"); Now the question: is it possible to get here object that is created on new-version class? (event if this service was defined as singleton) (When Thread 1 continues to invoke 'my' it will continue to use old version) I hope my question is bit clear now, Thanks, Igor On Mon, 2005-05-02 at 17:03, Johan Lindquist wrote: > Igor, no way of doing that unfortunately - all setup is done at registry > time. You could use your own proxy that relies on you setting up the > instance you want to invoke i guess .. > > johan > > On Mon, 02 May 2005 16:00:17 +0200, Igor Laberov > wrote: > > > Hi all, > > What is the way to replace service implementation without application > > restart, i.e. how to replace service implementation in the registry, so > > next time when I request the service, new implementation object will be > > created (even if was defined as singleton)? > > > > Thank you, > > Igor Laberov > > Qlusters, Inc. > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: hivemind-user-help@jakarta.apache.org > > > > > > > > -- > you too? > > --------------------------------------------------------------------- > 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