JBoss Community

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

created by Michael Gronau in JBoss AS 7 Development - View the full discussion

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

Start a new discussion in JBoss AS 7 Development at Community