axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p.casen...@almerys.com
Subject Null MessageContext returned
Date Thu, 06 Sep 2007 08:46:16 GMT
Hi all,
I don't know if it is a bug or not but here is what I noticed:
I've defined my own MessageReceiver in order to perform access control to 
the WebServices.
The class extends AbstractInOutMessageReceiver. It overrides void 
receive(MessageContext) method.
in this method here is the algorithm:
getthe implementationobject
retrieve parameter of the Webservice by calling getTypeService
perform access controls
call super.receive

The issue appear in getTypeService() method: in it, if I'm using 
MessageContext.getCurrentMessageContext(), null is returned.
If I modify getTypeService to getTypeService(MessageContext) and pass the 
MessageContext given as parameter of receive method, it is not null.

Am I misunderstanding a concept?

Thanks 
Pierre
Mime
View raw message