sharing session across Hosts

2005-02-02 Thread Charles N. Harvey III
Hello. I have two Hosts setup in the same Engine, and I would like to be able to share session variables across them. Is this possible? And, if so, what do I have to configure? Realm? Listener? Thanks a lot. Charlie - To

Re: sharing session across Hosts

2005-02-02 Thread Mark Winslow
I imagine creating a static variable would be global to the JVM. Something like: public class MyClass { public static int nUsers; }; would allow you to set and retrieve MyClass.nUsers in a global maner. I haven't tested this and its an absurdly trivial example, but it seems like it should

RE: sharing session across Hosts

2005-02-02 Thread Caldarale, Charles R
From: Mark Winslow [mailto:[EMAIL PROTECTED] Subject: Re: sharing session across Hosts I imagine creating a static variable would be global to the JVM. Not quite. It's global to the classloader, not the JVM. Since each web app has its own classloader, you would have to put such a class

Re: sharing session across Hosts

2005-02-02 Thread Charles N. Harvey III
: Re: sharing session across Hosts I imagine creating a static variable would be global to the JVM. Not quite. It's global to the classloader, not the JVM. Since each web app has its own classloader, you would have to put such a class in a location serviced by a more global loader

Re: sharing session across Hosts

2005-02-02 Thread Mario Winterer
it (SessionHolder.class) and put it in shared/lib, I could then set variables and then retrieve them from this class? Charlie Caldarale, Charles R said the following on 2/2/2005 5:00 PM: From: Mark Winslow [mailto:[EMAIL PROTECTED] Subject: Re: sharing session across Hosts I imagine creating a static variable