[jboss-jira] [JBoss JIRA] Resolved: (EJBTHREE-2205) setSessionContext(SessionContext ctx) doesn't get called for EJB2.x beans
jaikiran pai (JIRA)
jira-events at lists.jboss.org
Fri Nov 26 09:08:30 EST 2010
[ https://jira.jboss.org/browse/EJBTHREE-2205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
jaikiran pai resolved EJBTHREE-2205.
------------------------------------
Component Fix Version(s): jboss-ejb3-core:1.7.5
Fix Version/s: depchain-1.0.0-alpha-25
(was: EJB 3.1)
Resolution: Done
Fixed in r109488.
> 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
> Fix For: depchain-1.0.0-alpha-25
>
>
> 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
More information about the jboss-jira
mailing list