How can I put a variable in an handler and access it from the MessageContext
once I have reached the endpoint?
I have injected the WebServiceContext in my endpoint (with the @resource
annotation).
I have put an object in my handler in a SoapMessageContext as a key pair
value:

public boolean handleMessage(LogicalMessageContext lmc) {
                
        lmc.put(Constants.MY_CONSTANT, new Date());
                
        return true;
}

 and I expected the variable 

would have been accessed as:

context.getMessageContext().get(Constants.MY_CONSTANT);

Anyway what i get is null. Where is my fault??


-- 
View this message in context: 
http://www.nabble.com/put-a-variable-in-an-handler-and-access-it-from-the-MessageContext-tp15480680p15480680.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to