One problem with the current lifecycle introduction aspects (JMXIntroduction,
JndiIntroduction) is that they do not call invocation.invokeNext().
This means that if we use both the @JMX and the @JndiBinding annotations to a bean, the
first one in the chain wins, so we either get registered in JMX or in JNDI, but not both.
If these asepcts are changed to call invokeNext(), we will eventually end up with the
MethodInvocation trying to call the setKernelControllerContext() method in the target
which does not exist, resulting in an exception. I think the woven/proxy code needs to be
modified to detect if an interface introduction is the cause of the MethodInvocation, and
if this is the case we do not attempt to call the target method at the end of the
interceptor chain.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014257#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...