Version 2
    
    <?xml version="1.0" encoding="UTF-8"?>
    <aop>
     
    <aspect class="org.jboss.aop.patterns.readwritelock.ReadWriteLockAspect" scope="PER_INSTANCE"></aspect>
     
    <bind pointcut="execution(* *->@org.jboss.aop.patterns.readwritelock.readLockOperation(..))">
        <advice name="readLockMethod" aspect="org.jboss.aop.patterns.readwritelock.ReadWriteLockAspect"></advice>
    </bind>
    
    <bind pointcut="execution(* *->@org.jboss.aop.patterns.readwritelock.writeLockOperation(..))">
        <advice name="writeLockMethod" aspect="org.jboss.aop.patterns.readwritelock.ReadWriteLockAspect"></advice>
    </bind>
      
    </aop>