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"
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(); }
RES0LVED:
I used the "prepare" statement to instrument the pointcut