2 Replies Latest reply on Oct 7, 2009 1:13 PM by Sergio Santos

    EJB with WAR Classloader

    Sergio Santos Newbie

      Hello Everyone,

      I've done some tests and realized that EJBs and Web applications always run on different Classloaders
      A static property of a class that an EJB access doesn't necessary have the same value of the same static property of the same class that a Web applications access.
      I was expecting this when we do separated deploys but I've put them together inside the same EAR and the Classloaders keep different.

      Is there anyway of forcing that some EJBs and some Web applications share the same Classloaders?
      If not, is there another way of an EJB access a static property inside the Web applications?

      Thank you very much.