Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320035 - SDO: JBoss redeploy scenario not handled correctly in SDOHelperContext
Summary: SDO: JBoss redeploy scenario not handled correctly in SDOHelperContext
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-15 15:47 EDT by David McCann CLA
Modified: 2022-06-09 10:20 EDT (History)
0 users

See Also:


Attachments
Contains proposed fix for 2.2 stream (38.09 KB, patch)
2010-07-16 14:43 EDT, David McCann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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