if i want to modify init-parameter value in any of ServletContext or ServletConfig. any want it to be updated after servlet is destroyed by container. is there any wayout?
views:
471answers:
2well i got to know that there is no such wayout fmpi provided by java. because its used fr deploytimeconstants.bt if still smone has way out.pls tell me.
Why do you want to do this? Is the intent to track how the container is cycling servlets? If that were the case, you'd be better off with a static that's updated in the objects finalize() method. If it's some sort of state management (e.g. servlets share access to resources, you want to release those resources when the servlet is destroyed) you shouldn't be managing state based on what the container does, as you have no control over how those resources are managed. Can you post more specifics on what you're trying to accomplish? I've never run into a case where I needed to interact with how the container manages servlet objects.