PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cameron
Childress
Sent: Wednesday, July 02, 2008 6:44 PM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] Destroy An Object
On Wed, Jul 2, 2008 at 6:20 PM, Clarke Bishop [EMAIL PROTECTED]
wrote:
I have a user object that's stored in the session
On Thu, Jul 3, 2008 at 7:52 AM, Clarke Bishop [EMAIL PROTECTED] wrote:
But Cameron, you made me think of another question when you mentioned
calling init() on your user object. When do you create it? At the start of a
session?
It depends on the site's requirements to scale. On an internal
I have a user object that's stored in the session scope when a user logs in.
When the session expires, the object gets garbage collected, right?
But, if I want to destroy the object, how do I do that? Maybe this is not
something that's needed often as I couldn't find an answer via the docs or
On Wed, Jul 2, 2008 at 6:20 PM, Clarke Bishop [EMAIL PROTECTED] wrote:
I have a user object that's stored in the session scope when a user logs in.
When the session expires, the object gets garbage collected, right?
It's marked for GC, and eventually gets collected. Effectively as far
as the
And to add to Cam's response: When you replace the object with a new
instance, it is not destroyed immediately. However, you lose all
references to it and it may now be garbage collected. You should
never try to force the GC to run, the Java VM will handle it
automagically for you when