Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Gracefull shutdown

 
Johannes Postma
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to stop the server with a gracefull shutdown (WebSphere 5)?
 
Scott Duncan
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
gracefull shutdown???


Please explain. What problem are you having shutting it down?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume you mean this:

Have a look in the WAS_HOME\bin directory - there's a bunch of useful batch files in there.
 
Johannes Postma
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you stop the server, will the current httpsessions be destroyed?

In my company we have made an application for WebSphere 3.5. This application ensures that no new httpsessions will be created on a particalur server. When all session are invalid, the server stops. The application is called "Gracefull shutdown". I was wondering if this functionality is now part of WebSphere 5.
 
David Hibbs
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by William Duncan:

Please explain. What problem are you having shutting it down?


And tell us what platform you're on.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34393
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Johannes,
You could use a session listener to track how many open sessions there are. When there aren't any left, the listener could call an xmlconfig file. The XML config file could actually shut the server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic