Context Propagation Does Not Work With Asynchronous EJBs (Doc ID 2041013.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle WebLogic Server - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

Work Context propagation is not working when calling Asynchronus EJB.

The documentation of the work context can be found below 

http://docs.oracle.com/cd/E24329_01/web.1211/e24368/context.htm#WLPRG373

Our documentation states this: 

---------------------------
PropagationMode Interface
Defines the propagation properties of WorkContexts. Specifies whether the WorkContext is propagated locally, across threads, across RMI invocations, across JMS queues and topics, or across SOAP messages. If not specified, default is to propagate data across remote and local calls in the same thread.
---------------------------

However, seems like there is a problem when handling WorkContext propagation across threads. When the asynchronous method is invoked by the container, the WorkContext is not propagated between threads.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms