[jboss-dev-forums] [JBoss AS 7 Development] - Client EJB interceptor problem - Context data deserialized to private data map on server side.

Michael Gronau do-not-reply at jboss.com
Tue Jun 19 06:59:49 EDT 2012


Michael Gronau [https://community.jboss.org/people/Michael_Gronau] created the discussion

"Client EJB interceptor problem - Context data deserialized to private data map on server side."

To view the discussion, visit: https://community.jboss.org/message/742649#742649

--------------------------------------------------------------
Hello,
I'm facing a problem with ejb interceptors. On the client side we put some custom data to the EJBClientInvocationContext with EJBClientInvocationContext.getContextData().put(...). This data map is serialized as attachments into the invocation stream. On the server side we have a standard ejb interceptor which tries to read this custom data with context.getContextData().get(...). Some debugging has shown, that the ContextData map on the server side is deserialized into the 'privateData' map (via readAttachements) to the enclosing InterceptorContext instance of the current InvocationContext. So we cannot access this data from within our interceptor. Is this by design or a bug?

Thanks alot,

Michael
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/742649#742649]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120619/9313439e/attachment.html 


More information about the jboss-dev-forums mailing list