0 Replies Latest reply on Feb 2, 2006 11:26 AM by Reka Guendisch

    static variable over more web applications

    Reka Guendisch Newbie

      Is it possible to use static variables over more web application?

      I have more web applications, each of them uses a utility.jar, located under jboss/server/default/lib. A variable of a utility class has to be the same over each application. I initialize it using singleton, and its value (an insance of another class) reamins the same within the first web application, as expected. But if another web application tries to use the same variable, it becomes a new insance of the class it refers. How could I become alwas the first insance?

      Thank you in advice,
      Réka