Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5302

StatefulHandleImpl should be able to use legacy invoker method to retrieve EJBObject

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBossAS-5.1.0.Beta1
    • JBossAS-4.2.3.GA, JBossAS-5.0.0.GA
    • EJB2
    • None

      The StatefulHandleImpl holds the jndiEnv after creation and uses these properties in getEJBObject.

      Since jndiEnv is not transient, the properties used on client A are passed within the handle to Client B. This can lead to problems when these two clients use different properties (e.g. different host names for the same physical machine or a different implementation of the NamingContextFactory).

      Example: client A resides on the JBoss server and realizes remote access to the server using localhost within his URL. A handle, created on this client and passed to client B, which resides on another machine, can not be used to get the EBJ object, since even this clients tries to connect to the server using a lookup on localhost.

            rh-ee-galder Galder ZamarreƱo
            zeitlebe Bernd Zeitler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: