[jboss-dev] jbossas -beans.xml opt
Jaikiran Pai
jpai at redhat.com
Mon Jun 29 11:26:45 EDT 2009
Ales Justin wrote:
>
> (2) @org.jboss.aop.microcontainer.annotations.DisableAOP
>
> This one instructs MC to ignore transparent AOP usage when handling
> your bean.
> It will not look for aspect dependencies or try to create an AOP proxy.
> It will simply fall back to plain POJO handling.
>
> If you use @JMX or anything similar, this should then *not* be used.
> But for anything else it should be good to use it.
>
> How to use this?
> (a) either annotate your service/bean classes
> (b) simply use xml way of annotating your beans
>
> e.g.
> <annotation>@org.jboss.beans.metadata.api.annotations.MCAnnotations({org.jboss.beans.metadata.api.annotations.Inject.class})</annotation>
>
> <annotation>@org.jboss.aop.microcontainer.annotations.DisableAOP</annotation>
>
>
> (c) if you know that none of your beans in <deployment> (-beans.xml
> file) uses any of the needed features,
> you can simply add xml way to the <deployment> element.
> This way all beans inherit the annotation from deployment.
>
Although there wasn't a general consensus on the @DisableAOP, i guess
this is what we are going with now. So if there's no objections to
this, i will be adding this annotation (both programmatic and through
xml) in EJB3 MC deployments https://jira.jboss.org/jira/browse/EJBTHREE-1854
regards,
-Jaikiran
More information about the jboss-development
mailing list