Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 81974 invoked from network); 23 Jan 2010 09:45:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jan 2010 09:45:11 -0000 Received: (qmail 15943 invoked by uid 500); 23 Jan 2010 09:45:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 15882 invoked by uid 500); 23 Jan 2010 09:45:07 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 15871 invoked by uid 99); 23 Jan 2010 09:45:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jan 2010 09:45:06 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of peter.crowther3@googlemail.com designates 209.85.219.220 as permitted sender) Received: from [209.85.219.220] (HELO mail-ew0-f220.google.com) (209.85.219.220) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jan 2010 09:44:56 +0000 Received: by ewy20 with SMTP id 20so1356801ewy.0 for ; Sat, 23 Jan 2010 01:44:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=CRzblKlJL0LtGULCPsn0+auvgizKTQvb2pRFCSV1d/Y=; b=uKWoGTX9ZP6UH5fShSpzd+ZcfVCc0UPiN/QM2jn/1qa9UzbZ53jJFqdQNm40NpdSNV pIQsB/NAtY2lpgHfJlA39g5TcPO6Tq2O2cqj4ISXKElyiHc5V1/4z/IanoJxpVusKjwt Z+w2JwwY5QUgt2Ib+YCu1UHJx7HBGu0zVhChQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=jg+VgskGv0Ruh0XYjQgRrOucbwQFkwxjRqaiodE/Eh7ceel2TX1xdS3KjTK4+RtjMH 18Sqnay0P4nkJHxQE7HzFUDdHLbvxlb/ibFAXXXovepzn7e7tWEOZwYvo6IbMIvNLTAv HYce+h1x9Hpf5hjxrPoONfB0AaoWOdAYu4ch8= MIME-Version: 1.0 Sender: peter.crowther3@googlemail.com Received: by 10.216.88.75 with SMTP id z53mr1470684wee.46.1264239876031; Sat, 23 Jan 2010 01:44:36 -0800 (PST) In-Reply-To: <22571048298BC44DAF91BE12457E873D86B18D6E@bgxius-ex01.XIUS-bcgi.ltd> References: <22571048298BC44DAF91BE12457E873D86B18D6E@bgxius-ex01.XIUS-bcgi.ltd> Date: Sat, 23 Jan 2010 09:44:35 +0000 X-Google-Sender-Auth: f7e08e646da08f9e Message-ID: Subject: Re: Please Validate this Question From: Peter Crowther To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2010/1/23 Karthik Nanjangude : > 1) =A0 =A0 =A0 A Custom built =A0web application =A0uses Quartz =A0proces= s ( Kron =A0job) =A0every =A020 =A0minutes =A0to DB =A0(JNDI based Connecti= on pool ) =A0to process some data on =A0when deployed on =A0single =A0syste= m, > > 2) =A0 =A0 =A0 The same is deployed on a Apache 2x - tomcat CLUSTER mode = as 2 instances on 2 different independent System. > > Question: =A0 Does each instance of the application be connection to DB e= very 20 minute based on the Kron -Job Configuration. Yes. The instances are independent. > If so Is there any way within the Cluster Configuration to prevent this i= ssue? Not that I am aware of. You will have to design your application appropriately. For example, could these jobs run every 10 minutes if both nodes are up rather than every 20? If so, you could code your app so that one node ran the job at :00, :20 and :40 and the other node ran it at :10, :30 and :50. - Peter --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org