This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Will it be destroyed after the computer shut down or ......??
Thanks GReen Horn
Paul Sturrock gave the correct answer for the session (though the session isn't necessarily lost when the server shuts down). But your code uses the request to store the attribute, not the session. In this case the object goes out of scope as soon as the request is complete.