cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Gesino <williamk...@libero.it>
Subject put a variable in an handler and access it from the MessageContext
Date Thu, 14 Feb 2008 14:17:29 GMT

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.


Mime
View raw message