I am trying to find a way to add properties to the MessageContext object passed to the HandleRequest method of a @HandlerChain based handler class.
I want to set some data into the MessageContext such that it is available from the InvocationContext object's getContextData() method that is passed to an EJB3 @Interceptor intercept method. This data will be used for a set of custom authorisation routines.
While I can add the properties to the MessageContext object, the InvocationContext .getContextData() method returns an empty map, so it's not working how I wanted.
Does anyone know how I can achieve adding properties to the MessageContext (or any other mechanism) such that I can access the properties later in the EJB method?
Cheers
James
BTW: The EJB invoked from the SOAP message is a @Stateless @WebService EJB with annotated @WebMethod's
James