1 Reply Latest reply on Dec 28, 2006 11:39 PM by fabiocsilva

    HotSwap in JBoss AS

    fabiocsilva

      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();
      
       }