[jboss-jira] [JBoss JIRA] (AS7-5258) MDC is lost during @Asynchronous EJB calls
David Lloyd (JIRA)
jira-events at lists.jboss.org
Fri Jul 27 11:43:06 EDT 2012
[ https://issues.jboss.org/browse/AS7-5258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12708415#comment-12708415 ]
David Lloyd commented on AS7-5258:
----------------------------------
This should be doable for in-VM requests at least, but it will require an interceptor to do the copy using the logmanager's MDC API. NDC should also be copied. In both cases, they should be cleared after the invocation completes to avoid polluting the thread pool.
> MDC is lost during @Asynchronous EJB calls
> ------------------------------------------
>
> Key: AS7-5258
> URL: https://issues.jboss.org/browse/AS7-5258
> Project: Application Server 7
> Issue Type: Feature Request
> Components: Logging
> Affects Versions: 7.1.2.Final (EAP)
> Reporter: Patrick Ruckstuhl
> Assignee: James Perkins
>
> If I set a variable into the MDC, this is propagated fine through to synchronous EJB calls, but is lost in asynchronous EJB calls.
> Should the MDC not be copied over to the thread retrieved from the thread pool?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list