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