[jboss-dev] @JMX and @DisableAOP live happily together

Kabir Khan kabir.khan at jboss.com
Mon May 18 11:51:24 EDT 2009


Looks like a user error ;-) Or are you saying it actually invokes the  
lifecycle callback in this case?
On 18 May 2009, at 17:40, David M. Lloyd wrote:

> So why should @DisableAOP be the annotation with enabling AOP being  
> the default?
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <deployment xmlns="urn:jboss:bean-deployer:2.0">
>    <bean name="TestBean"  
> class="javax.management.monitor.GaugeMonitor">
> <annotation>@org.jboss.aop.microcontainer.annotations.DisableAOP()</ 
> annotation>
> < 
> annotation 
> > 
> @org 
> .jboss 
> .aop 
> .microcontainer 
> .aspects 
> .jmx 
> .JMX 
> (exposedInterface 
> = 
> javax 
> .management 
> .monitor 
> .GaugeMonitorMBean,name="test:name=Banana",registerDirectly=false)</ 
> annotation>
>    </bean>
> </deployment>
>
> - DML
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development




More information about the jboss-development mailing list