1 Reply Latest reply: Dec 28, 2006 11:39 PM by Fábio Costa RSS

    HotSwap in JBoss AS

    Fábio Costa Newbie

      This code is enough for hotswap to function in the JBoss Application Server ?

      # Setup JBoss sepecific properties
      
      #JAVA_OPTS="-Dprogram.name=$PROGNAME $JAVA_OPTS -javaagent:/opt/jboss/bin/aspectjweaver.jar"
      
      JAVA_OPTS="-Dprogram.name=$PROGNAME $JAVA_OPTS -javaagent:/opt/jboss/bin/pluggable-instrumentor.jar=-hotSwap"
      
      


      The code below run normally but the pointcut introduced does not have effect

       try {
      
       AdviceBinding binding = new AdviceBinding("call(public $instanceof{aspects.dataManagement.util.SystemRecord}->new(..))"+
      
       "AND !within($instanceof{aspects.dataManagement.AbstractDataCollectionCustomization})", null);
      
       binding.addInterceptor(SimpleInterceptor.class);
      
       AspectManager.instance().addBinding(binding);
      
       System.out.println("sucess");
      
       } catch (ParseException e) {
      
       // TODO Auto-generated catch block
      
       e.printStackTrace();
      
       }