• Post Reply Bookmark Topic Watch Topic
  • New Topic

Filter.destroy() execution at the time of exception?

 
yamini nadella
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If exception arises in doFilter() then destroy() get executed or not?
 
V Sharma
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, It does n,t.Similiar to the servlet mehtodology.It has not been made available for service.So destroy won,t be called.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!