<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: jboss-service.xml 78894 2008-09-26 14:56:32Z kabir.khan@jboss.com $ -->

<!-- ===================================================================== -->
<!--  JBoss Server Configuration                                           -->
<!-- ===================================================================== -->

<server>

   <mbean code="org.jboss.aop.deployment.JBoss4IntegrationWrapper" name="jboss.aop:service=JBoss4IntegrationWrapper"/>

   <!-- The code for the service is different for the different run scenarios
      *** JBoss 4.0 
          * JDK 1.4 - org.jboss.aop.deployment.AspectManagerService
          * JDK 5 (not using -javaagent switch) - org.jboss.aop.deployment.AspectManagerService
          * JDK 5 (using -javaagent switch) - org.jboss.aop.deployment.AspectManagerServiceJDK5
          * BEA JRockit 1.4.2 - org.jboss.aop.deployment.AspectManagerService
      *** JBoss 3.2 
          * JDK 1.4 - org.jboss.aop.deployment.AspectManagerService32
          * JDK 5 (not using -javaagent switch) - org.jboss.aop.deployment.AspectManagerService32
          * JDK 5 (using -javaagent switch) - org.jboss.aop.deployment.AspectManagerService32JDK5
          * BEA JRockit 1.4.2 - org.jboss.aop.deployment.AspectManagerService32
   -->
   <mbean code="org.jboss.aop.deployment.AspectManagerServiceJDK5"
      name="jboss.aop:service=AspectManager">
      <attribute name="EnableLoadtimeWeaving">false</attribute>
      <!-- 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 -->
      <attribute name="SuppressTransformationErrors">true</attribute>
      <attribute name="Prune">true</attribute>
      <attribute name="Include">org.jboss.test, org.jboss.injbossaop</attribute>
      <attribute name="Exclude">org.jboss.</attribute>
      <!-- This avoids instrumentation of hibernate cglib enhanced proxies
      <attribute name="Ignore">*$$EnhancerByCGLIB$$*</attribute> -->
      <attribute name="Optimized">true</attribute>
      <attribute name="Verbose">false</attribute>
      <depends optional-attribute-name="JBossIntegrationWrapper" proxy-type="attribute">jboss.aop:service=JBoss4IntegrationWrapper</depends>
      <!-- 
         Available choices for this attribute are:
            org.jboss.aop.instrument.ClassicInstrumentor (default)
            org.jboss.aop.instrument.GeneratedAdvisorInstrumentor
       <attribute name="Instrumentor">org.jboss.aop.instrument.ClassicInstrumentor</attribute>
      -->
   </mbean>

   <mbean code="org.jboss.aop.deployment.AspectDeployer"
      name="jboss.aop:service=AspectDeployer">
      <depends>jboss.system:service=MainDeployer</depends>
   </mbean>
</server>
