[jboss-user] [JBoss AOP] - AOP integration with JMX question

bossy do-not-reply at jboss.com
Mon Jan 22 05:30:10 EST 2007


Hi,
I posted this in the JMX forum first, but since nobody replyed I thougt I could try here as this is about AOP as well.

I need to create an aspect that can be managed by JMX. The idea is to use the aspect to obtain some stats(by intercepting calls) and to use JMX console to retrieve the stats.
I created an XMBean and I added methods wich I use as advices.
Everything works fine( the calls are intercepted and the XMBean is registered and accessible from the JMX console)  with one exception - it seems that AOP and JMX create their own instances of the class. Aop intercepts the calls I make and updates the stats, but the XMBean values of the same stats(attributes) remain the same ( null in my case).
I tried to use separate XMBean and aspect classes, but the problem is that in order to use the XMBean methods to update my stats, I have to expose them and once I do this - they are available to the users in the JMX console.
My question is - is it possible to do write an Ascpect XMBean and if so - where should I look for more details.
Thanks in advance. 


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

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



More information about the jboss-user mailing list