Are you sure you need a servlet for this kind of task ??

We can run any other java class in your servlet engine, with
threads and so on.

Varun Kumar wrote:
>
> The servlet should run once in a day..(Actually it is
> supposed to send Birthday greetings to  people who's
> birthdates are stored  in database,- matches with
> current date)
> I don't want to do empty Servlet request daily ..It
> should be *automated*
>
> Varun
> --- Danny Rubis <[EMAIL PROTECTED]> wrote:
> > Hey!
> >
> > Step1) The servlet gets loaded upon the first
> > access.  No problem there.  Just
> > send the servlet an 'empty' request.
> > Step 2) No problem here also.  Just call your
> > EmailMethod() in the init().
> > Step 3) Why would you want to unload the servlet?
> > No need.  The servlet
> > container wants control of that.  It's better left
> > to the container.  There
> > *is* a destroy() that gets called when the container
> > boots the servlet out.
> > It's typically used for clean up of connection open
> > and so forth
> >
> > Are you sure this information wasn't in the archive
> > :>)
> >
> > Sans adieu,
> > Danny Rubis
> >
> > Varun Kumar wrote:
> >
> > > Hi,
> > >
> > > i have a Servlet that sends e-mails to few
> > mail-ids
> > > (using javaMail API).
> > >
> > > Is it possible to automate the following steps:
> > >
> > > Step1) Loading in the servlet in Server(i'm using
> > > javawebserver2.0)
> > > Step2) Imediately send mailz (Or do whatewher the
> > work
> > > the servlet
> > > is programmed to do)
> > > Step2) Unload itself.from WebServer..
> > >
> > > (I searched the Archives but couldn't find
> > discussions
> > > related to this issue)
> > >
> > > Thankz for consideration..
> > >
> > > Varun
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Send instant messages & get email alerts with
> > Yahoo! Messenger.
> > > http://im.yahoo.com/
> > >
> > >
> >
> ___________________________________________________________________________
> > > To unsubscribe, send email to
> > [EMAIL PROTECTED] and include in the body
> > > of the message "signoff SERVLET-INTEREST".
> > >
> > > Archives:
> >
> http://archives.java.sun.com/archives/servlet-interest.html
> > > Resources:
> >
> http://java.sun.com/products/servlet/external-resources.html
> > > LISTSERV Help:
> > http://www.lsoft.com/manuals/user/user.html
> >
> >
> ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED]
> > and include in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives:
> >
> http://archives.java.sun.com/archives/servlet-interest.html
> > Resources:
> >
> http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>
> __________________________________________________
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
begin:vcard
n:Brune;Henning
tel;fax:+49 (0)5 21/1 06-64 40
tel;work:+49 (0)5 21/1 06-29 48
x-mozilla-html:FALSE
org:Universitaet Bielefeld;Technische Fakultaet, AG TI
adr:;;Postfach 100131;Bielefeld;NRW;33501;Germany
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Inform.
fn:Henning Brune
end:vcard

S/MIME Cryptographic Signature

Reply via email to