2 Replies Latest reply on Oct 13, 2005 5:01 AM by kabirkhan

    cant intecept JBPM classes

    tolstiy

      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.

      my aop.xml:
      "
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>












      "
      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 working.

        • 1. Re: cant intecept JBPM classes
          tolstiy

           

          "tolstiy" wrote:
          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

          my aop.xml:

          <?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>
          
          
          
          


          • 2. Re: cant intecept JBPM classes
            kabirkhan

            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.