Is it possible use AspectJ with MBeans?
In application used annotations for mark mbeans (spring annotation - managed resource). I tried to add aop for logging operations which were invoked on mbeans. But later mbeans dissappeared from jconsole mbean viewer. AFAIK it happens due AOP substitutes original class with proxy. Is it possible to keep annotations? Or only solution is to create intermediate class for mbeans?
Short answer: Yes, it is definitely possible
To determine your exact issue, we would need to see the aop and bean configuration you had/have.
See questions/10664182 for an explanation on that setting.