Description
Hi,
PolicyConstants.POLICY_OVERRIDE constant in PolicyInInterceptor provides the possibility to dynamically override
the policy. I would like to reuse this mechanism in custom project to dynamically apply policies calculating in ServiceRegistry.
Solution works fine for client IN/OUT and for service OUT, but
unfortunately doesn't work for service IN. The reason is that code in
PolicyInInterceptor checks PolicyConstants.POLICY_OVERRIDE only after
"if (MessageUtils.isRequestor(msg))" statement. Therefore provider IN
messages are ignored.
Corresponded patch is attached.
Regards,
Andrei.