I'm not sure how much complexity you want, but Quartz might be good for #1:
http://www.opensymphony.com/quartz/
Derek
On Mon, Nov 2, 2009 at 12:40 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:
Could someone give me a quick code sample to get me started on each of the
following?
1. A
Hi. Thanks for responding.
I haven't looked it up, but I don't really need anything very specialized. I
didn't mean that the time it runs each day has to be very precise. The point is
just to back up the database daily.
Should I use java.util.Timer.scheduleAtFixedRate?
That would probably work in the simple case.
Derek
On Thu, Nov 5, 2009 at 3:19 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:
Hi. Thanks for responding.
I haven't looked it up, but I don't really need anything very specialized.
I didn't mean that the time it runs each day has to be very
The answer for two is add an email appender to your log4j configuration.
Such as ::
appender name=email class=org.apache.log4j.net.SMTPAppender
param name=BufferSize value=512 /
param name=SMTPHost value=127.0.0.1 /
param name=From value=myser...@mydomain.com /