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

Bug 328503

Summary: SDO: Need support that allows users to provide application info
Product: z_Archived Reporter: David McCann <david.mccann>
Component: EclipselinkAssignee: David McCann <david.mccann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed code changes for the 2.1.2 stream
none
Proposed code changes for the 2.2 stream none

Description David McCann CLA 2010-10-22 15:04:32 EDT
We need to allow users to provide important application info, such as the application name, for instances where the logic in SDOHelperContext isn't sufficient.

Specific case:

When a thread is non-weblogic-managed thread, SDO code can't find out the
caller's application name. It results in HeperContext loaded by application
will not be used. It forces SDO users to setup the classloader/helpercontext
mapping.  In most of case, SDO users (e.g. ADF service) won't be able to map all
classloaders in a App's classloader hierarchy to the right helper context.

We will add an abstract class as opposed to an interface to allow additional methods to be added w/o breaking implementers.

For now we will have a single abstract method:

public String getApplicationName()
Comment 1 David McCann CLA 2010-10-22 15:05:25 EDT
Created attachment 181537 [details]
Proposed code changes for the 2.1.2 stream
Comment 2 David McCann CLA 2010-10-22 15:06:53 EDT
Created attachment 181538 [details]
Proposed code changes for the 2.2 stream
Comment 3 David McCann CLA 2010-10-22 15:48:41 EDT
Fix checked into the 2.1.2 Stream.
Reviewed by matt.macivor@oracle.com; blaise.doughan@oracle.com
Tests:  all SDO unit tests pass as expected; WebLogic server test passes as expected

Revision: 8392
Comment 4 David McCann CLA 2010-10-22 15:52:35 EDT
Fix checked into the 2.2 Stream.
Reviewed by matt.macivor@oracle.com; blaise.doughan@oracle.com
Tests:  all SDO unit tests pass as expected; WebLogic server test passes as expected

Revision:  8393
Comment 5 David McCann CLA 2010-10-22 16:10:09 EDT
Fixed.
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:05:42 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink