Re: Please Validate this Question

2010-01-24 Thread Pid

On 23/01/2010 06:40, Karthik Nanjangude wrote:

Hi

Please Validate this Question


SPEC : JDK1.5
TOMCAT 6.0.20
O/s  1, 2   Windows 2000 Server
Apache Http - 2.x


1)   A Custom built  web application  uses Quartz  process ( Kron  job)  
every  20  minutes  to DB  (JNDI based Connection pool )  to process some data 
on  when deployed on  single  system,

2)   The same is deployed on a Apache 2x - tomcat CLUSTER mode as 2 
instances on 2 different independent System.

   Question:   Does each instance of the application be connection to DB 
every 20 minute based on the Kron -Job Configuration.

   If so Is there any way within the Cluster Configuration to prevent this 
issue?


Quartz is cluster aware, or at least can be configured to be so.
Check the appropriate documentation on the Quartz site.


p




With regards
karthik




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Please Validate this Question

2010-01-23 Thread Peter Crowther
2010/1/23 Karthik Nanjangude karthik.nanjang...@xius-bcgi.com:
 1)       A Custom built  web application  uses Quartz  process ( Kron  job)  
 every  20  minutes  to DB  (JNDI based Connection pool )  to process some 
 data on  when deployed on  single  system,

 2)       The same is deployed on a Apache 2x - tomcat CLUSTER mode as 2 
 instances on 2 different independent System.

 Question:   Does each instance of the application be connection to DB every 
 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 issue?

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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org