0 Replies Latest reply on Oct 21, 2002 3:06 PM by Michael L. Gantz

    Should EAR's share deployed JAR when packated separately?

    Michael L. Gantz Newbie

      Here is an overview of the situation:


      earth.ear
      |
      +---corelib.jar - contains class (MyClass)
      |
      +---apollo.war
      | |
      | +---MANIFEST.MF - ClassPath points to 'corelib.jar'


      pluto.ear
      |
      +----corelib.jar - contains class (MyClass)
      |
      +---mercury.war
      | |
      | +---MANIFEST.MF - ClassPath points to 'corelib.jar'




      It is my understanding that apollo and mercury should not share instances of objects in corelib.jar. MyClass is a singleton. Mercury is the first app to request the singleton of MyClass, this works with no problems. But, when apollo requests the singleton instance of MyClass it gets the same instance of that mercury got. Is this the correct behaviour? If it is the correct behaviour, is there any way to change it?


      Thanks...