[jboss-user] [JBoss AOP] - HotSwap in JBoss AS
fabiocsilva
do-not-reply at jboss.com
Thu Dec 28 11:12:34 EST 2006
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
More information about the jboss-user
mailing list