3 Replies Latest reply on Oct 20, 2008 4:33 PM by flavia.rainone

    Hot Swap using a standalone version of JBoss AOP

    hou84

      Hello,
      I am using the standalone version of JBoss AOP (JBossIDE-AOP-Developer-1.2.0.Beta2(2)) under Eclipse. Please, someone tell me how to configurate in Eclipse to do the hot Swap.

      Thank you.

        • 1. Re: Hot Swap using a standalone version of JBoss AOP
          flavia.rainone

          Hello!

          Unfortunately, the plugin does not work with newer versions of JBoss AOP.
          We are planning to fix this very soon. By now, go to the Run... menu of Eclipse, and create a new Java Application configuration.
          On the Arguments tab, add the following arguments:

          -Djboss.aop.path=yourpath/jboss-aop.xml -javaagent:your_jboss_aop_home/lib/jboss-aop-jdk50.jar=-hotSwap


          Notice that the argument "-hotSwap" passed to the javaagent is responsible for enabling hot swap. If you prefer to run it with hot swap disabled, just use the arguments above without the "=-hotSwap" part.

          • 2. Re: Hot Swap using a standalone version of JBoss AOP
            hou84

            Hi!
            Please, would you tell me how to do the configuration to run (jboss-aop-2.0.0.CR17) under Eclipse. Thank you!

            • 3. Re: Hot Swap using a standalone version of JBoss AOP
              flavia.rainone

              Hi!

              You can follow the steps described in this tutorial:
              http://jbossaop.blogspot.com/2008/09/debugging-jboss-aop-with-eclipse-part1.html

              The difference here is that you want to run an application, and not a test. So, instead of clicking "Debug...", you should click the "Run..." button. You can configure to run your application as you would without JBoss AOP. The only difference is that you are going to add the arguments as described in the tutorial.

              If you want to enable hotswap, just add the -hotSwap parameter to the javaagent as I showed to you in the previous post.