Firstly, this isn't a struts question - there will be a far more appropriate
list somewhere.

Secondly - have you read the servlet spec? This will answer many questions.

A quick answer - no. There is no real need to unload the servlet (althought
the container may decide to do just that!) - just make sure you release any
resources used during initialisation. 

A special type of servlet, implementing ServletContextListener, might be a
better choice for context initialisation/

Paul

-----Original Message-----
From: Michael Cardon [mailto:[EMAIL PROTECTED]
Sent: 07 November 2003 13:17
To: [EMAIL PROTECTED]
Subject: How do un-load (destroy) a servlet after startup?


Hello,

I have a couple of servlets that I start with my struts application that
read some xml files and initialize my program for use.  After the
initialization is done, I no longer need the servlets and would like to
un-load (destroy) them. Does anyone know how to do this?

Thanks.


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


**************************************
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


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

Reply via email to