[jboss-jira] [JBoss JIRA] Closed: (EJBTHREE-905) SessionContext.getEJBLocalObject & SessionContext.getEJBObject() fail on @PostConstruct

William DeCoste (JIRA) jira-events at lists.jboss.org
Thu Dec 13 17:31:51 EST 2007


     [ http://jira.jboss.com/jira/browse/EJBTHREE-905?page=all ]

William DeCoste closed EJBTHREE-905.
------------------------------------

    Resolution: Done

This has been merged at some point - tests are in Beta3 and are passing. The problem was that getEJBObject() and getEJBLocalObject created a new stateful proxy without setting the original id of the bean, so when the proxy was invoked, it created a new instance of the bean, which called @PostConstruct, repeat loop ...

> SessionContext.getEJBLocalObject & SessionContext.getEJBObject() fail on @PostConstruct
> ---------------------------------------------------------------------------------------
>
>                 Key: EJBTHREE-905
>                 URL: http://jira.jboss.com/jira/browse/EJBTHREE-905
>             Project: EJB 3.0
>          Issue Type: Bug
>    Affects Versions: AS 4.2.0 GA
>            Reporter: William DeCoste
>         Assigned To: William DeCoste
>            Priority: Critical
>             Fix For: AS 5.0.0.Beta3, Branch_4_2
>
>
> Either call creates a new bean instance via jndi lookup. Call to getEJBLocalObject() in @PostConstruct causes infinite loop.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list