[jboss-dev-forums] [Design of POJO Server] - Re: @JMX aspect and aop/mc integration

bstansberry@jboss.com do-not-reply at jboss.com
Sun Nov 12 18:23:02 EST 2006


"kabir.khan at jboss.com" wrote : The AspectManagerService currently has an "exclude" property to set all classes starting with "org.jboss." to not be transformed/inspected, which works on the underlying AspectManager singleton.

Tip for anyone trying to convert a JMX microkernel-based service to an MC bean w/ the @JMX annotation -- if you find your bean doesn't get registered in JMX it's probably because of the above exclusion.

To get around this, you need to add your class or a containing package to the "include" list in the AspectManager bean, found in deployers/jboss-aop-jboss5.deployer/META-INF/aspect-deployer-beans.xml.

To get the services currently in cluster-service.xml registered, I would need to add org.jboss.cache.jmx, org.jboss.cache.pojo.jmx, org.jboss.ha, org.jboss.invocation.jrmp.server.JRMPInvokerHA, org.jboss.invocation.pooled.server.PooledInvokerHA and org.jboss.invocation.unified.server.UnifiedInvokerHA to this list.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985285



More information about the jboss-dev-forums mailing list