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?