Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328503 - SDO: Need support that allows users to provide application info
Summary: SDO: Need support that allows users to provide application info
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: David McCann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-22 15:04 EDT by David McCann CLA
Modified: 2022-06-09 10:05 EDT (History)
0 users

See Also:


Attachments
Proposed code changes for the 2.1.2 stream (8.35 KB, patch)
2010-10-22 15:05 EDT, David McCann CLA
no flags Details | Diff
Proposed code changes for the 2.2 stream (8.35 KB, patch)
2010-10-22 15:06 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-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