[EMAIL PROTECTED] wrote:
>
> 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.
Setting of CurrentMessageContext is done by AbstractMessageReceiver  ,
that is the issue you have faced . What you have to do is do what
AbstractMessageReceiver has done in your code.

Thanks
Deepal

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to