Hi!
  Here is my jboss-aop.xml:

  | <?xml version="1.0" encoding="UTF-8" ?>
  | <aop>
  |     <aspect class="com.test.core.aop.aspects.InjectSessionBeanAspect" />
  |     <aspect class="com.test.core.aop.aspects.TestAspect" />
  |     
  |     <bind   pointcut="field(* 
com.test.*->@com.test.core.aop.annotations.InjectSessionBean)" >
  |             <advice  name="access"  
aspect="com.test.core.aop.aspects.InjectSessionBeanAspect" />
  |     </bind>
  |     
  |     <bind   pointcut="execution(* 
com.test.*->@com.test.core.aop.annotations.MPlatformTest(..))" >
  |             <advice  name="test"    
aspect="com.test.core.aop.aspects.TestAspect" />
  |     </bind>
  |     
  | </aop>
  | 

   and here is my AspectManager MBean configuration 
(..../conf/bootstrap-beans.xml  from JBoss-5.0.0):


  |    <bean name="AspectManager" 
class="org.jboss.aop.deployers.AspectManagerJDK5">
  |       <constructor>
  |          <parameter><![CDATA[
  |                  <aop>
  |                               <aspect name="mainDeployer" 
class="org.jboss.profileservice.aop.MainDeployerAspect"/>
  |                                            <bind pointcut="execution(* 
$instanceof{org.jboss.deployers.spi.deployment.MainDeployer}->process(..))">
  |                                       <advice name="process" 
aspect="mainDeployer"/>
  |                                    </bind>
  |                                         <aspect name="persist" 
class="org.jboss.profileservice.aop.PersistAspect"/>
  |                                         <bind pointcut="execution(* 
$instanceof{org.jboss.managed.api.ManagedProperty}->setValue(..))">
  |                                       <advice name="setValue" 
aspect="persist"/>
  |                                    </bind>
  |                                 </aop>]]>
  |               </parameter>
  |       </constructor>
  | 
  |       <property name="enableLoadtimeWeaving">true</property>
  |       <!-- only relevant when EnableLoadtimeWeaving is true.
  |            When transformer is on, every loaded class gets
  |            transformed.  If AOP can't find the class, then it
  |            throws an exception.  Sometimes, classes may not have
  |            all the classes they reference.  So, the Suppressing
  |            is needed.  (i.e. Jboss cache in the default configuration -->
  |       <property name="suppressTransformationErrors">true</property>
  |       <property name="prune">true</property>
  |       <property name="include">org.jboss.test., 
org.jboss.injbossaop.</property>
  |       <property name="exclude">org.jboss.</property>
  |       <!-- This avoids instrumentation of hibernate cglib enhanced proxies
  |       <property name="ignore">*$$EnhancerByCGLIB$$*</property> -->
  |       <property name="optimized">true</property>
  |       <property name="verbose">false</property>
  |       <!--
  |          Available choices for this attribute are:
  |             org.jboss.aop.instrument.ClassicInstrumentor (default)
  |             org.jboss.aop.instrument.GeneratedAdvisorInstrumentor
  |        <property 
name="instrumentor">org.jboss.aop.instrument.ClassicInstrumentor</property>
  |       -->
  |    </bean>
  | 

    Where can I configure the packages included for transformation? I didn't 
change the include property....is it the one which allows the configuration of 
packages to transform?

   Thanks in advance.
   Best regards,
      Victor

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113442#4113442

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113442
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to