3 Replies Latest reply on Jun 15, 2006 11:42 AM by logankiefer

    Classloader - Sharing common files between web and ejb tier

    logankiefer

      Is there a way to have shared libraries between war and ejb but have it so that the shared libraries are isolated in each tier. In other words if I had a shared class that the war classloader would load it and the ear classloader would load it, but any changes to that class in the web tier would not effect the instance in the EJB tier. And the war and ear run in the same JVM.

      The reasoning behind this is that we developed common classes that were shared among web and ejb tier when they were in separate JVMs. Now that we are in same JVM we don't want any ill-side effects that could occur since now that common class is going to be manipulated by both tiers. This concern is mostly for shared static classes or singeltons.