[jboss-jira] [JBoss JIRA] (AS7-6356) Locally transmitted context data is not received
RH Bugzilla Integration (JIRA)
jira-events at lists.jboss.org
Mon Feb 11 01:42:56 EST 2013
[ https://issues.jboss.org/browse/AS7-6356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753337#comment-12753337 ]
RH Bugzilla Integration commented on AS7-6356:
----------------------------------------------
Brad Maxwell <bmaxwell at redhat.com> made a comment on [bug 909804|https://bugzilla.redhat.com/show_bug.cgi?id=909804]
Description of problem:
ContextData attached to request is not transmitted when LocalEJBReceiver is used.
org.jboss.as.ejb3.remote.LocalEJBReceiver:177
context.setContextData(new HashMap<String, Object>());
see also https://issues.jboss.org/browse/AS7-5021
Version-Release number of selected component (if applicable):
JBoss EAP 6.0.1
How reproducible: always
Steps to Reproduce:
EJB Client side interceptor putting data into context map
@Override
public void handleInvocation(EJBClientInvocationContext context) throws Exception {
context.getContextData().put("KEY", "Test");
context.sendRequest();
}
EJB Server side interceptor:
@AroundInvoke
private Object aroundInvoke(final InvocationContext invocationContext) throws Exception {
this.invocationData = invocationContext.getContextData();
if(this.invocationData.get("KEY") == null)
System.out.println("FAILED to receive data");
return invocationContext.proceed();
}
Actual results:
the "KEY" / "Test" is not passed, the server side will get null when it does invocationData.get("KEY")
Expected results:
invocationData.get("KEY") returns "Test"
Additional info:
Community jira: https://issues.jboss.org/browse/AS7-6356
> Locally transmitted context data is not received
> ------------------------------------------------
>
> Key: AS7-6356
> URL: https://issues.jboss.org/browse/AS7-6356
> Project: Application Server 7
> Issue Type: Bug
> Components: EJB
> Affects Versions: 7.1.3.Final (EAP)
> Reporter: Wouter De Borger
> Assignee: jaikiran pai
> Labels: ejb
>
> ContextData attached to request is not transmitted when LocalEJBReceiver is used.
> org.jboss.as.ejb3.remote.LocalEJBReceiver:177
> context.setContextData(new HashMap<String, Object>());
> see also https://issues.jboss.org/browse/AS7-5021
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list