[jboss-jira] [JBoss JIRA] Created: (JBAS-5302) StatefulHandleImpl is not portable from client A to client B

Bernd Zeitler (JIRA) jira-events at lists.jboss.org
Mon Mar 10 12:15:59 EDT 2008


StatefulHandleImpl is not portable from client A to client B
------------------------------------------------------------

                 Key: JBAS-5302
                 URL: http://jira.jboss.com/jira/browse/JBAS-5302
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: EJB2
    Affects Versions: JBossAS-4.2.3.GA
            Reporter: Bernd Zeitler
         Assigned To: Alexey Loubyansky


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.



-- 
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