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   
© 2018 Hirondelle Systems | Source Code | Contact | License | RSS
Individual code snippets can be used under this BSD license - Last updated on September 21, 2013.
Over 2,000,000 unique IPs last year - Built with WEB4J.
- In Memoriam : Bill Dirani -