Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 54423 invoked from network); 13 Apr 2010 14:34:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Apr 2010 14:34:39 -0000 Received: (qmail 47678 invoked by uid 500); 13 Apr 2010 14:34:39 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 47625 invoked by uid 500); 13 Apr 2010 14:34:39 -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 List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 47618 invoked by uid 99); 13 Apr 2010 14:34:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Apr 2010 14:34:39 +0000 X-ASF-Spam-Status: No, hits=4.4 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ashjain2@gmail.com designates 209.85.217.224 as permitted sender) Received: from [209.85.217.224] (HELO mail-gx0-f224.google.com) (209.85.217.224) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Apr 2010 14:34:31 +0000 Received: by gxk24 with SMTP id 24so3490606gxk.18 for ; Tue, 13 Apr 2010 07:34:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=XNJ3BALu5hucAz5Ry+N90Lu+kU7T4CjwG1rOUTJhcsM=; b=pFtGhD29i3UK9HgdFbws/4JJoqux1HZAVvwQhVjm6CiNZT//R5KAEcS6tZC5nNuHul Y5bRNvUMEEhKjZ0sENXRpuGNlV2kBDBn0qjL9aBHhhldxIL2udlOLbAIqxR+8heGdqwz ra4Zwe8abLDoBC1u/iCa+2A/Pno+5PWtvflb0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=VjFALKLvbnqsjQdwaPnqS7EIHtpILXGvpMBonUnTskwOVtWuZJum1dmNXevpctLWhU jFR3bopcT3N1b8o83p1W7nPRg2PwcR61+R0o4YRO8C85cgrhBCHjU54UTmmft1wH3rEV PYeyo5qf2xDYwt7HpLzYierF0tSzlrqEFH5io= MIME-Version: 1.0 Received: by 10.90.65.17 with HTTP; Tue, 13 Apr 2010 07:34:10 -0700 (PDT) In-Reply-To: References: Date: Tue, 13 Apr 2010 20:04:10 +0530 Received: by 10.91.162.16 with SMTP id p16mr2634918ago.101.1271169250268; Tue, 13 Apr 2010 07:34:10 -0700 (PDT) Message-ID: Subject: Re: Applications are rendered unavailable when resources dependencies are redeployed From: Ashish Jain To: dev@geronimo.apache.org Content-Type: multipart/alternative; boundary=001485f7cad69c97f504841f276d X-Virus-Checked: Checked by ClamAV on apache.org --001485f7cad69c97f504841f276d Content-Type: text/plain; charset=ISO-8859-1 Hi Amit, I think you may want to try this scenario out. You can try looking onto the redeploy functionality and try a similar scenario and see the behavior. Look into classses ConfigurationStatus, ConfigurationModel and see how the childs are being stopped. IIUC I do not see much issue in keeping the app up while the dependencies are down only if the errors are logged properly. Probably others can provide better insight on this. Thanks Ashish On Tue, Apr 13, 2010 at 1:51 PM, Amit Puri wrote: > Hi All > > In a large enterprise where App's are deployed on a number of Geronimo > servers, we are facing some issues while redeploying the dependencies. Here > is the outline of the issue being faced: > > When one of its dependencies is being redeployed, a running application is > stopped. In config.xml too, load attribute is set to false. Let's take an > example, Application A is depending on dbpool B. While you redeploy B, > Geronimo will stop A and redeploy dbpool B but it will not restart A. We > have to manually start the app by using the deploy script with the start > command or set load to true in config.xml and restart the server. > > As per standard design of application life-cycle in Geronimo, when we > redeploy the dependency of an application, it will unload the application > first and redeploy the dependencies, it will keep load="false" to app > module in config.xml. But as per our requirement, we need to keep > applications loaded in an executable state even when its dependencies are > being redeployed. Is it feasible to do in Geronimo? Please comment. > > Thanks > Amit > --001485f7cad69c97f504841f276d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Amit,

I think you may want to try this scenario out. You can try = looking onto the redeploy functionality and try a similar scenario and see = the behavior.
Look into classses ConfigurationStatus, ConfigurationModel= and see how the childs are being stopped.

IIUC I do not see much issue in keeping the app up while the dependenci= es are down only if the errors are logged properly. Probably others can
= provide better insight on this.

Thanks
Ashish

On Tue, Apr 13, 2010 at 1:51 PM, Amit Puri <puri.amit@gmail.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 2= 04, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi All

In a large enterprise where App's are deployed on a numbe= r of Geronimo servers, we are facing some issues while redeploying the depe= ndencies. Here is the outline of the issue being faced:

When one of = its dependencies is being redeployed, a running application is stopped. In = config.xml too, load attribute is set to false. Let's take an example, = Application A is depending on dbpool B. While you redeploy B, Geronimo will= stop A and redeploy dbpool B but it will not restart A. We have to manuall= y start the app by using the deploy script with the start command or set lo= ad to true in config.xml and restart the server.

As per standard design of application life-cycle in Geronimo, when we r= edeploy the dependency of an application, it will unload the application fi= rst and redeploy the dependencies, it will=A0 keep load=3D"false"= to app module in config.xml. But as per our requirement, we need to keep a= pplications loaded in an executable state even when its dependencies are be= ing redeployed. Is it feasible to do in Geronimo? Please comment.

Thanks
Amit

--001485f7cad69c97f504841f276d--