public function lookupProxy($lookupName)
    {

        // load the initial context instance
        $initialContext = $this->getInitialContext();

        // query whether a request context is available
        if ($servletRequest = RequestHandler::getRequestContext()) {
            // inject the servlet request to handle SFSBs correctly
            $initialContext->injectServletRequest($servletRequest);
        }

        // return the proxy instance
        return $initialContext->lookup($lookupName);
    }
public function lookupProxy($lookupName)
    {

        // load the initial context instance
        $initialContext = $this->getInitialContext();

        // query whether a request context is available
        if ($servletRequest = RequestHandler::getRequestContext()) {
            // inject the servlet request to handle SFSBs correctly
            $initialContext->injectServletRequest($servletRequest);
        }

        // return the proxy instance
        return $initialContext->lookup($lookupName);
    }
public function lookupProxy ( $ lookupName ) { // load the initial context instance $ initialContext = $ this -> getInitialContext ( ) ; // query whether a request context is available if ( $ servletRequest = RequestHandler :: getRequestContext ( ) ) { // inject the servlet request to handle SFSBs correctly $ initialContext -> injectServletRequest ( $ servletRequest ) ; } // return the proxy instance return $ initialContext -> lookup ( $ lookupName ) ; }
This returns a proxy to the requested session bean. If the proxy has already been
instanciated for the actual request, the existing instance will be returned.

@param string $lookupName The lookup name for the requested session bean

@return \AppserverIo\RemoteMethodInvocation\RemoteObjectInterface The proxy instance
This returns a proxy to the requested session bean . If the proxy has already been instanciated for the actual request the existing instance will be returned .