Ce contenu n'est pas disponible dans la langue sélectionnée.
12.5. The JBoss AspectManager Service
The AspectManager Service can be managed at runtime using the JMX console, which is found at http://localhost:8080/jmx-console. It is registered under the ObjectName jboss.aop:service=AspectManager. If you want to configure it on start up you need to edit some configuration files.
In JBoss Enterprise Application Platform 5 the AspectManager Service is configured using a JBoss Microcontainer bean. The configuration file is jboss-as/server/PROFILE/conf/bootstrap/aop.xml. The AspectManager Service is deployed with the following XML:
<bean name="AspectManager" class="org.jboss.aop.deployers.AspectManagerJDK5">
<property name="jbossIntegration"><inject bean="AOPJBossIntegration"/></property>
<property name="enableLoadtimeWeaving">false</property>
<!-- only relevant when EnableLoadtimeWeaving is true.
When transformer is on, every loaded class gets transformed.
If AOP can not find the class, then it throws an exception.
Sometimes, classes may not have all the classes they reference.
So, the Suppressing is needed. (For instance, 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>-->
<!-- By default the deployment of the aspects contained in
../deployers/jboss-aop-jboss5.deployer/base-aspects.xml
are not deployed. To turn on deployment uncomment this property
<property name="useBaseXml">true</property>-->
</bean>
<bean name="AspectManager" class="org.jboss.aop.deployers.AspectManagerJDK5">
<property name="jbossIntegration"><inject bean="AOPJBossIntegration"/></property>
<property name="enableLoadtimeWeaving">false</property>
<!-- only relevant when EnableLoadtimeWeaving is true.
When transformer is on, every loaded class gets transformed.
If AOP can not find the class, then it throws an exception.
Sometimes, classes may not have all the classes they reference.
So, the Suppressing is needed. (For instance, 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>-->
<!-- By default the deployment of the aspects contained in
../deployers/jboss-aop-jboss5.deployer/base-aspects.xml
are not deployed. To turn on deployment uncomment this property
<property name="useBaseXml">true</property>-->
</bean>
Copy to ClipboardCopied!Toggle word wrapToggle overflow
Later we will talk about changing the class of the AspectManager Service. To do this, replace the contents of the class attribute of the bean element.
Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance. Découvrez nos récentes mises à jour.
Rendre l’open source plus inclusif
Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez le Blog Red Hat.
À propos de Red Hat
Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.