1 Reply Latest reply on Aug 16, 2010 6:00 AM by maximilien

    dynamically add/remove aspect

    maximilien

      Hi,

       

      I'm using jboss aop for monitoring purposes.

       

      I have an aop included in my ear :

           EAR

      aop

      jar

      jar

      war

       

      In my aop i have an xml defining my aspect and its bindings.

      It works well but now i want to enable/disable all the bindings at runtime.

       

      I've tried to call undeploy on the aspectdefinition retrieved  from aspectmanager but it doesn't seem to remove all the bindings.

      Can someone point me into the right direction for this ?

       

      Thanks,

      Maximilien

        • 1. Re: dynamically add/remove aspect
          maximilien

          When i call stop method on aspectdeployer with the url of my aop archive, all the bindings are removed but when calling start they are not added so i can disable my monitoring but not enable it again after that.

           

          Moreover when i have call the stop method, my other project that uses aop on the same classes that i monitor doesn(t work anymore.

           

          Someone can help ?