setSessionContext(SessionContext ctx) doesn't get called for EJB2.x beans
-------------------------------------------------------------------------
Key: EJBTHREE-2205
URL:
https://jira.jboss.org/browse/EJBTHREE-2205
Project: EJB 3.0
Issue Type: Bug
Components: core
Affects Versions: depchain-1.0.0-alpha-21
Reporter: jaikiran pai
Assignee: jaikiran pai
After SwitchBoard integration, where we removed the ResourceHandler,
org.jboss.ejb3.test.ejbthree959.unit.EJB21TestCase has been failing with:
java.lang.RuntimeException: ctx is not set
at org.jboss.ejb3.test.ejbthree959.MyStatefulBean.assertTrue(MyStatefulBean.java:107)
at org.jboss.ejb3.test.ejbthree959.MyStatefulBean.checkCtx(MyStatefulBean.java:112)
at org.jboss.ejb3.test.ejbthree959.MyStatefulBean.ejbCreate(MyStatefulBean.java:86)
at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
at
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at
org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:182)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at
org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
Apparently, the Ejb3DescriptorHandler used to "add" a @Resource annotation on
setSessionContext method via AOP for EJB2.x beans so that the ResourceHandler would then
pick it up during ENC setup and injection.
http://fisheye.jboss.org/changelog/JBossAS/?cs=63298
Now with SwitchBoard integration, we'll need to think of a way of getting past this.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira