loading the servlet automatically when the server starts up can be done by
selecting the "load at start" radio button in the adding servlets service of
the Java webserver.

you can automate sending of mails by coding it in the init() method so that
mails are send as soon as the servlet loads.
Anup Kumar M.A.
Trigent Software
----- Original Message -----
From: "Varun Kumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 13, 2000 2:42 PM
Subject: Automatic loading,invoking and unloading servlets


> 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

Reply via email to