i'm trying to intercept JBPM classes(processinstance class)
i have applied "EnableLoadtimeWeaving" option.
i have added "pluggable-instrumentor.jar" to server bin directory and changed
run.bat file. and i still can intecept consturctor calling.
when i look into the jboss console i can see that my aop.jar is deployed to the AS, but i still can't get it workng
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <aop> <aspect class="org.jbam.aop.test.ProcessInstanceAspect" scope="PER_VM"/> <bind pointcut="execution(org.jbpm.graph.exe.ProcessInstance->new(..))"> <advice aspect="org.jbam.aop.test.ProcessInstanceAspect" name="monitor"/> <interceptor class="org.jbam.aop.test.ProcessInstanceInterceptor"/> <interceptor class="org.jboss.aspects.logging.InvocationLogInterceptor"/> </bind> </aop>
I'm afraid I don't understand what you mean. Does loadtime weaving work for you at all? Does it work for non-jbpm classes, but not for jbpm classes?
Have you tried the injboss tutorial example? That should help you get loadtime weaving injboss working in a "standard" way.