You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Detelin Yordanov <de...@gmail.com> on 2008/11/11 10:53:18 UTC

Is automatic module engagement supported?

Hi guys,
  Does Axis2 currently support automatic module enagement? By examining the
code I found out that the AxisDescription's engageModulesForPolicy
method is called only in applyPolicy(..) which is not explicitly called
anywhere (or at least I could not find it).
Does this mean that to support the automatic module engagement, one needs to
manually call the applyPolicy(..) method on the AxisService?

Regards,
   Detelin

Re: Is automatic module engagement supported?

Posted by Nandana Mihindukulasooriya <na...@gmail.com>.
Hi Detelin,
           applyPolicy(..) method is used in code generated stubs. If you
look at the constructor you can see _service.applyPolicy() which recursively
calls the child descriptions. So automatic module engagement works in the
client side as mentioned here [1]. But doesn't see this being used in the
server side.

thanks,
nandana

[1] -
http://nandana83.blogspot.com/2008/10/automatic-module-engagement-in-apache.html

On Tue, Nov 11, 2008 at 3:23 PM, Detelin Yordanov <detelinyordanov@gmail.com
> wrote:

> Hi guys,
>   Does Axis2 currently support automatic module enagement? By examining the
> code I found out that the AxisDescription's engageModulesForPolicy
> method is called only in applyPolicy(..) which is not explicitly called
> anywhere (or at least I could not find it).
> Does this mean that to support the automatic module engagement, one needs
> to manually call the applyPolicy(..) method on the AxisService?
>
> Regards,
>    Detelin
>