Hien,
We let sessions time out or be invalidated by a browser close. We also use
HttpSessionBindingListener to close any database connections we may have
bound to the session when these have been unbound (through a remove, which
happens at session invalidation).
Because multiple web applications may store objects/data with the same
session object (a person could have many browser windows open, and be
accessing many web apps at the same time), we NEVER invalidate the session
ourselves. Instead each web app manages the objects/data it is responsible
for. I urge other JSP developers to do the same. You wouldn't want me
invalidating a session object your apps use - I don't want you invalidating
a session object my apps use.
As for initialization, that is done through a login process, or if key web
app objects/data/data connections don't yet exist.
Hope that helps,
Dan
> ----------
> From: Hien Luu[SMTP:[EMAIL PROTECTED]]
> Reply To: Hien Luu
> Sent: Monday, April 12, 1999 11:18 AM
> To: [EMAIL PROTECTED]
> Subject: How To Manage Resource Cleanup
>
> I was wondering if people with experience in developing application using
> JSP/BEAN can
> share their experiences specifically in the area of resource management:
>
> 1) What mechanism did you use to find out when a new session is created so
> resources need to
> be initialized?
>
> 2) What mechanism did you use to find out when a session has ended so
> resource
> can be released?
>
> Thanks,
>
> Hien
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff JSP-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".