public function lookupProxy($lookupName)
    {

        // initialize the remote method call parser and the session storage
        $sessions = new ArrayList();

        // initialize the local context connection
        $connection = new DoctrineLocalContextConnection();
        $connection->injectSessions($sessions);
        $connection->injectApplication($this->getApplication());

        // initialize the context session
        $session = $connection->createContextSession();

        // set the session ID from the environment
        $session->setSessionId(Environment::singleton()->getAttribute(EnvironmentKeys::SESSION_ID));

        // lookup and return the requested remote bean instance
        return $session->createInitialContext()->lookup($lookupName);
    }
public function lookupProxy($lookupName)
    {

        // initialize the remote method call parser and the session storage
        $sessions = new ArrayList();

        // initialize the local context connection
        $connection = new DoctrineLocalContextConnection();
        $connection->injectSessions($sessions);
        $connection->injectApplication($this->getApplication());

        // initialize the context session
        $session = $connection->createContextSession();

        // set the session ID from the environment
        $session->setSessionId(Environment::singleton()->getAttribute(EnvironmentKeys::SESSION_ID));

        // lookup and return the requested remote bean instance
        return $session->createInitialContext()->lookup($lookupName);
    }
public function lookupProxy ( $ lookupName ) { // initialize the remote method call parser and the session storage $ sessions = new ArrayList ( ) ; // initialize the local context connection $ connection = new DoctrineLocalContextConnection ( ) ; $ connection -> injectSessions ( $ sessions ) ; $ connection -> injectApplication ( $ this -> getApplication ( ) ) ; // initialize the context session $ session = $ connection -> createContextSession ( ) ; // set the session ID from the environment $ session -> setSessionId ( Environment :: singleton ( ) -> getAttribute ( EnvironmentKeys :: SESSION_ID ) ) ; // lookup and return the requested remote bean instance return $ session -> createInitialContext ( ) -> lookup ( $ lookupName ) ; }
This returns a proxy to the requested session bean.

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