• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

How to destroy servlet before weblogic shuts down...

 
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys,

I have a typical problem. I know the following code in the .xml file will start the servlet on weblogic startup.

<Load-on-startup>0</Load-on-startup>
...
...
...

The same way I need to destroy the servlet before the weblogic server shuts down. Do you have any ideas.

Thanks in advance,
Guru
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guru,

first idea which comes to my head is to use weblogic "shutdown classes" mechanism. what do You want to be done on shutdown ?

Best Regards,
KArol Muszynski
 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can implement the method destroy in the Servlet.

It will be called upon application disabling. See Servlet javadocs
 
reply
    Bookmark Topic Watch Topic
  • New Topic