Also check out:

http://www.coolservlets.com/  ( Servlet-based )
 ( and the getLastModified() method of javax.servlet.http.HttpServlet )

and

http://www.simscomputing.com/  ( EJB based )


regards,
David


On Mon, 12 Mar 2001, Ryan wrote:

> just run a cron job and have mysql pipe the output to a file.
> 
> check out 'man crontab'
> 
> -ryan
> 
> 
> 
> ----- Original Message -----
> From: "Venkat" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, March 12, 2001 5:20 PM
> Subject: Automatic database connection
> 
> 
> > Hi all
> >
> > Inorder to reduce load on database, I want to connect once to the database
> > everyday (at 12 o' clock midnight or on change of date) and retrieve some
> > information from database (say a quote of the day) and put that in
> > servletcontext and display it to everyone on one particular page
> >
> > I am able to do this in that page and it happens only when somebody
> requests
> > that page, database connection is made and string data is put in
> application
> > (servlet) object
> >
> > How can I automate this, is there any way that I write same code in
> web.xml
> > or in any other place
> >
> > Please advise
> >
> > Thanks
> >
> > Venkat
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 



David Bullock
LISAsoft Project Lead
Sun Certified Programmer for the Java 2 Platform 
 
 email: [EMAIL PROTECTED]
mobile: +61 4 0290 1228

"The key ingredients of success are a crystal-clear goal, 
a realistic attack plan to achieve that goal, 
and consistent, daily action to reach that goal."

Steve Maguire, "Debugging the Development Process". 

LISAsoft
http://www.lisasoft.com/

Adelaide                  Sydney
--------------------      ------------------------
38 Greenhill Rd           Level 3, 228 Pitt Street
Wayville S.A. 5034        Sydney NSW 2000
Australia                 Australia

PH  +61 8 8272 1555       PH  +61 2 9283 0877
FAX +61 8 8271 1199       FAX +61 2 9283 0866
--------------------      ------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to