cancel
Showing results for 
Search instead for 
Did you mean: 

When will be the Detroy method call in the Servlet

Former Member
0 Kudos

Hi

I am using Netweaver Developer Studio.I want to know

when the destroy method will be called.

I am using WAS to deploy the servlets.

When i am using Tomcat , i can see the out put when will be the destroy method will be called on Console.

But in the case of WAS where to see the out put.

Try to give any simple program.

thanks

Kumar

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

TO see this you have to cnfigure the logs

Log in to Visual Admin and click on the Log configurator >

Go to Categories Tab and click on

ROOT CATEGORY >Applications>WebApplications node . Change the severity to ALL from the dropdown

On the top menu on the rt hand frame click on the Save Menu and select : "Apply to ALL server Nodes "

Similarly go to Locations TAB >ROOT LOCATION >System >out

and Change the severity to ALL from the dropdown and again On the top menu on the rt hand frame click on the Save Menu and select : "Apply to ALL server Nodes "

test a servlet application

check in the log for ex: C:\usr\sap\J09\JC00\j2ee\cluster\server0\log\<i>applications.0.log</i>

hope this helps , please mark points for helpful answers

regards

rajesh kr

0 Kudos

Hi,

You can use the log methods of the classes Genericservlet or the ServletContext. write a logging call in the destroy method for this you need to overwrite the default destroy method of the HttpServlet class.

Regards,

Sesh