Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define new execution property constants in ManagedTask interface to support app portability #36

Open
glassfishrobot opened this issue Apr 23, 2014 · 4 comments
Labels
duplicate This issue or pull request already exists Priority: Major Type: New Feature

Comments

@glassfishrobot
Copy link

Consider adding additional execution property constants to the ManagedTask interface to allow control of the propagation of the required contexts, jndi, classloader and security. This will support application portability between app server providers.
For example, we could add:
static final String JNDI_CONTEXT_SOURCE - Execution property to be returned in getExecutionProperties() or ContextService.createContextualProxy() to control how the Java™ EE Product Provider propogates the JNDI context to the task or proxy method of contextual proxy object be executed in. Valid values are: "CURRENT_THREAD", "DEFAULT", and "NONE"
static final String CLASSLOADER_CONTEXT_SOURCE - Execution property to be returned in getExecutionProperties() or ContextService.createContextualProxy() to control how the Java™ EE Product Provider propogates the classloader context to the task or proxy method of contextual proxy object be executed in. Valid values are: "CURRENT_THREAD", "DEFAULT", and "NONE"
static final String SECURITY_CONTEXT_SOURCE - Execution property to be returned in getExecutionProperties() or ContextService.createContextualProxy() to control how the Java™ EE Product Provider propogates the security context to the task or proxy method of contextual proxy object be executed in. Valid values are: "CURRENT_THREAD", "DEFAULT", and "NONE"

Affected Versions

[1.0]

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Reported by f.rowe

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA CONCURRENCY_EE_SPEC-36

@glassfishrobot
Copy link
Author

@njr-11 njr-11 added the duplicate This issue or pull request already exists label Mar 22, 2023
@njr-11
Copy link
Contributor

njr-11 commented Mar 22, 2023

ContextServiceDefinition, which was added in Concurrency 3.0 / Jakarta EE 10 covered this requirement in a different way by allowing the equivalent to be configured in a standard way on ContextServiceDefinition. I'd recommend closing this as a duplicate unless anyone sees a need for doing the same thing via execution properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists Priority: Major Type: New Feature
Projects
None yet
Development

No branches or pull requests

2 participants