Hello
On Jan 18, 2006, at 7:41 AM, Martin Ravell wrote:
Is there a simple way to put an object into a globally available
spot for
access by any current session? Something like the
session.setAttribute()
method?
I have some info that I'd like to be able to load up and then have
accessed
by any user logged into my app. I'm thinking of a cache type of deal.
Ideally writeable by any of the sessions.
App is Struts, Hibernate and Spring running on JBoss/Tomcat.
Three ideas come to my mind...
1 Use an "Application Context" variable. Watch out! there is thread
safety involved
2 Wire it using spring.
3 The old an reliable final public static thing, which might be even
easier
Any ideas will be much appreciated.
Regards
Marty
Regards
Marcelo Morales
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]