store it in the context, that is only shared with the application, you get the context from the request object, then use setAttribute,getAttribute
Filip ----- Original Message ----- From: "Merrill Cornish" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 13, 2004 11:56 AM Subject: Sharing among session of ONE application I think I know the answer to this, but I would like reassurance. I'm building a timesheet application using JSP, servlets, and Tomcat. So far, I been very careful to keep all non-contant data out of servlet class instance variables so everything should be thread safe and there should be no interference between simultaneous users of the application. Now, I've got some information I WOULD like to share across all sessions of the application (but not across other Tomcat applications). So, that should mean that all I really have to do is defined the information in instance variables (and remember when using it that it can change unexpectedly). Right? Merrill --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
