Loss of data during restart

If a server restarts, then data stored in session scope may be lost. The behaviour of a web container in this case is not defined by the servlet specification, and varies between implementations. Some web containers provide "failover", in which session data is not lost during a restart, while others do not.

In those that do implement failover, a common requirement is that only Serializable objects can be restored.

See Also :
Implementing Serializable
Session-scope objects often Serializable
Would you use this technique?
Yes   No   Undecided   
© 2010 Hirondelle Systems | Source Code | Contact | License | Quotes | RSS
Individual code snippets can be used under this BSD license - Last updated on June 5, 2010.
Over 150,000 unique IPs last month - Built with WEB4J.
- In Memoriam : Bill Dirani -