[ 
https://issues.apache.org/jira/browse/AXIS2-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416161#comment-13416161
 ] 

Sagara Gunathunga  commented on AXIS2-4162:
-------------------------------------------

Patch applied in r1362479.

Thanks for patch Detelin , you are welcome for further improvement on this area 
according to your suggestion.   
                
> AxisDescription.applyPolicy() fails to engage any neccessary modules if 
> called on AxisBinding/AxisEndpoint
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4162
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4162
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.4.1, nightly
>            Reporter: Detelin Yordanov
>         Attachments: patch.txt
>
>
> Hi guys,
>    I have been using the applyPolicy() method to automatically engage any 
> modules required for the current policy.  Nandana pointed me out that this is 
> also being used in ADB generated client and I expected it to work properly 
> any AxisDescription instance.
> However I noticed that if calling this method on AxisEndpoint and AxisBinding 
> nothing happens - the policy is there but the modules do not get engaged.
> It seems that the reason for this is that the applyPolicy() iterates over the 
> children of the current AxisDescription till it reaches the AxisMessage, then 
> goes up the hierarchy collecting the effective policy.
> This works fine when called on any AxisDescription in the AxisService -> 
> AxisOperation(s) -> AxisMessage(s) hierarchy, but if it is called on the
> AxisEndpoint it does not go further below since the AxisBinding is not added 
> as a child to the AxisEndpoint.
> Furthermore even if it was able to go down and reach any potential 
> AxisBindingMessages in the 
> AxisEndpoint -> AxisBinding -> AxisBindingOperation -> AxisBindingMessage 
> hierarchy it would not be able to compute the effective policy since the 
> getApplicablePolicy(AxisDescription) method is working only on an AxisMessage 
> instance.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to