Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-992

The javax.ejb.SessionContext.SessionContext.getEJBLocalObject and javax.ejb.SessionContext.SessionContext.getEJBObject implementations returns always new proxies for EJB3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • AS 4.2.1.GA
    • EJB 3.0 RC9 - Patch 1
    • None
    • None

      The javax.ejb.SessionContext.SessionContext.getEJBLocalObject and javax.ejb.SessionContext.SessionContext.getEJBObject implementations returns always new proxies. The api states "Obtain a reference to the EJB object that is currently associated with the instance". My interpretation is that this api should always return a proxy to the current instance. At least for stateful session beans a proxy for the actual session bean should be returned else the bean instance has no mean to return a reference to itself (except when the stateful session bean is passed as parameter).

            wdecoste1@redhat.com William Decoste (Inactive)
            wv-javacoder Roland Räz (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: