on 06-16-2008 12:19 AM
Hi,
Wrote a servlet implementing destory() method. Whenever the webcontainer service is shutdown(from J2EE visual admin) I see that the destroy method is called.
However when the server (WAS 7.0 SP9) itself is shutdown, the destroy method is not getting called.
Is there anything that I am missing? Will appreciate any help on this.
Thanks,
Shaji
Hi ,
Hello ,
Try this code ,
Class classObject = Class.forName("SecondServlet");
SecondServlet servlet = (SecondServlet)classObject.newInstance();
servlet.init(getServletConfig());
System.out.println("Before calling the service() from TestServlet");
servlet.service(req,res);
servlet.destroy();
Regards ,
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.