1 Reply Latest reply on Jul 9, 2003 3:06 PM by Shigeru Chiba

    Confusion: ClassPool, Loader, etc.?

    Howard Lewis Ship Newbie

      I'm confused about something; it looks like ClassPool is a shared static singleton instance.

      The ClassPool picks up classes off the classpath.

      What if these classes are part of a WAR or EJB JAR? What happens when the module is reloaded? How does the ClassPool purge out-of-date classes when a module is reloaded / redeployed?

      I would like to manage my own ClassPool singleton, storing it as a ServletContext attribute. When the WAR or EAR is redeployed, we'd recreate the ClassPool instance inside the ServletContext. Haven't quite seen how to do that, yet. Am I on the right track?