[jboss-dev-forums] [Design the new POJO MicroContainer] - Lifecycle aspects revisited

kabir.khan@jboss.com do-not-reply at jboss.com
Sat Feb 10 16:14:52 EST 2007


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#4014257

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



More information about the jboss-dev-forums mailing list