Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320035

Summary: SDO: JBoss redeploy scenario not handled correctly in SDOHelperContext
Product: z_Archived Reporter: David McCann <david.mccann>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Contains proposed fix for 2.2 stream none

Description David McCann CLA 2010-07-15 15:47:44 EDT
We currently cache helper contexts for JBoss on the archive file name, and we also keep a map of archive file names to class loaders. During lookup, if we find an existing entry in the map for a given archive file name we compare the loaders to determine if a redeploy has occurred.  This method of detecting a redeploy is not acceptable.  The problem is that if the context loader is changed during application execution (which can and does happen) such that we cannot locate what we consider to be the application loader we assume redeploy and wipe the entry from the map.

We need to register a listener with the JBoss MBeanServer so we can be notified of a redeploy.
Comment 1 David McCann CLA 2010-07-16 14:43:54 EDT
Created attachment 174529 [details]
Contains proposed fix for 2.2 stream
Comment 2 David McCann CLA 2010-07-16 14:53:44 EDT
Fix checked into the 2.2 stream.
Reviewed by:  matt.macivor@oracle.com
Tests: all unit tests pass as expected; sdo server tests all pass
Comment 3 David McCann CLA 2010-07-16 15:02:09 EDT
Fix for bugs 320035 (SDO: JBoss redeploy scenario not handled correctly in SDOHelperContext) and 319171 (SDO: HelperContext cache should not be keyed on HelperContextMapKey)
Reviewed by:  matt.macivor@oracle.com
Tests: all unit tests pass as expected
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:20:07 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink