Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 21282 invoked from network); 21 Dec 2004 16:33:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 Dec 2004 16:33:50 -0000 Received: (qmail 72362 invoked by uid 500); 21 Dec 2004 16:29:23 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 72285 invoked by uid 500); 21 Dec 2004 16:29:21 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 72234 invoked by uid 99); 21 Dec 2004 16:29:21 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from workstation5.qas.com (HELO mail3.qas.com) (195.172.82.5) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 21 Dec 2004 08:29:09 -0800 Received: from orion.qas.com (orion.qas.com [150.150.100.34]) by mail3.qas.com (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Tue, 21 Dec 2004 16:28:50 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: How to run servlet for every 30 minutes in Tomcat 4.1.30 Date: Tue, 21 Dec 2004 16:28:49 -0000 Message-ID: <5684A7E6FB10504393A2806C1F4C021005AF80FF@orion.qas.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to run servlet for every 30 minutes in Tomcat 4.1.30 Thread-Index: AcTnecwtJdDoE16dQ5OLvnsq95x+jAAACeCg From: "Allistair Crossley" To: "Tomcat Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N no, and I believe doing so it bad practice. use some OS controlled timer li= ke cron to issue a HTTP call to your servlet. I once wrote a shell script t= hat calls a http address on the local machine but cannot remember how ;) if= you are using oracle then you can setup this timer thread inside the datab= ase itself. don't add a thread into your web application. > -----Original Message----- > From: Shilpa Nalgonda [mailto:snalgonda@mypublisher.com] > Sent: 21 December 2004 16:14 > To: Tomcat Users List > Subject: RE: How to run servlet for every 30 minutes in Tomcat 4.1.30 >=20 >=20 > Thanks for the reply... >=20 > The application which i am trying to write is a standalone=20 > utility.. Client > does not hit this servlet. >=20 > Instead my application which is a servlet, will make some=20 > database calls-- > and if the required data is present in the database, then=20 > that data is sent > to the client via xmlrpc call and the response from the xmlrpc call is > updated back into the dataabse. >=20 > So we want this utility preferably servlet in our Tomcat=20 > container to be run > every 30 minutes like a cron job, to do the database updates.. >=20 > There are so many other classes deployed on Tomcat and i want=20 > to use those > classes to write this servlet utility. > This is the reason why chose to use servlet, but is there any=20 > configurable > parameter to run servlet for every 30 minutes... >=20 > -----Original Message----- > From: Wade Chandler [mailto:wchandler@redesetgrow.com] > Sent: Tuesday, December 21, 2004 11:03 AM > To: Tomcat Users List > Subject: Re: How to run servlet for every 30 minutes in Tomcat 4.1.30 >=20 >=20 > Shilpa Nalgonda wrote: > > Hi, > > I am using Tomcat4.1.30 version. > > I have to develop a client application which looks in the=20 > database every > 30 > > minutes, > > to retrieve the status of an order and send the status to the remote > client. > > Again waits for the > > The client's response and insert the repsonse back to the database. > > > > I wanted to do this in a servlet, so is there any way that=20 > i could run > this > > servlet automatically inside the > > Tomcat container, or is it configurable in servlet mapping?=20 > if so can > > someone please suggest me with examples... > > > > > >=20 > --------------------------------------------------------------------- > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > > >=20 > Well....it's kind of not extremely clear what you are asking, but why > does the servlet need to do anything except listen for a=20 > client which is > threaded to do this every 30 minutes, in other words...why=20 > not have the > servlet do what it naturally does...sit there and get hit by client > requests....get the info....and send it back? I mean...the servlet > can't push to the client unless you want to use something=20 > besides http, > or unless you are using servlets on both ends and http servers on both > ends. You could use keep alives I guess.....I wouldn't though....only > so many tcp/ip connections. >=20 > Wade >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >=20 >=20 =20 ------------------------------------------------------- QAS Ltd. Developers of QuickAddress Software www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org