1 Reply Latest reply on Sep 28, 2005 5:03 AM by kabirkhan

    How to undeploy an aspect in a running application

    rjsingh

      The ref manual goes over the steps to dynamically add an aspect. Assuming we have an aspect deployed in hotswap mode in a standalone java application. How do we undeploy that aspect while the application is running.
      Thanks,
      RS

        • 1. Re: How to undeploy an aspect in a running application
          kabirkhan

          If you mean this example:

          org.jboss.aop.advice.AdviceBinding binding = new AdviceBinding("execution(POJO->new(..))", null);
           binding.addInterceptor(SimpleInterceptor.class);
           AspectManager.instance().addBinding(binding);
          


          You can remove this by
          AspectManager.instance().removeBinding(binding.getName())