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

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996664#3996664

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996664
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to