AppserverIo\Appserver\Core\AbstractManager::lookupProxy PHP Метод

lookupProxy() публичный Метод

This returns a proxy to the requested session bean.
public lookupProxy ( string $lookupName, string $sessionId = null ) : AppserverIo\RemoteMethodInvocation\RemoteObjectInterface
$lookupName string The lookup name for the requested session bean
$sessionId string The session-ID if available
Результат AppserverIo\RemoteMethodInvocation\RemoteObjectInterface The proxy instance
    public function lookupProxy($lookupName, $sessionId = null)
    {
        // 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);
        }
        // lookup the proxy by the name and session ID if available
        return $initialContext->lookup($lookupName, $sessionId);
    }