public function lookupLocalProxy($lookupName)
    {

        // extract the session bean name from the lookup name
        $beanName = str_replace('/local', '', $lookupName);

        // load the application
        $application = $this->getApplication();

        // load bean and object manager
        $beanManager = $application->search(BeanContextInterface::IDENTIFIER);
        $objectManager = $application->search(ObjectManagerInterface::IDENTIFIER);

        // load the requested session bean
        $sessionBean = $application->search($beanName);

        // load the bean descriptor
        $sessionBeanDescriptor = $objectManager->getObjectDescriptors()->get(get_class($sessionBean));

        // initialize the local proxy instance
        return new LocalProxy(
            $beanManager,
            $sessionBeanDescriptor,
            $sessionBean
        );
    }
public function lookupLocalProxy($lookupName)
    {

        // extract the session bean name from the lookup name
        $beanName = str_replace('/local', '', $lookupName);

        // load the application
        $application = $this->getApplication();

        // load bean and object manager
        $beanManager = $application->search(BeanContextInterface::IDENTIFIER);
        $objectManager = $application->search(ObjectManagerInterface::IDENTIFIER);

        // load the requested session bean
        $sessionBean = $application->search($beanName);

        // load the bean descriptor
        $sessionBeanDescriptor = $objectManager->getObjectDescriptors()->get(get_class($sessionBean));

        // initialize the local proxy instance
        return new LocalProxy(
            $beanManager,
            $sessionBeanDescriptor,
            $sessionBean
        );
    }
public function lookupLocalProxy ( $ lookupName ) { // extract the session bean name from the lookup name $ beanName = str_replace ( '/local' , '' , $ lookupName ) ; // load the application $ application = $ this -> getApplication ( ) ; // load bean and object manager $ beanManager = $ application -> search ( BeanContextInterface :: IDENTIFIER ) ; $ objectManager = $ application -> search ( ObjectManagerInterface :: IDENTIFIER ) ; // load the requested session bean $ sessionBean = $ application -> search ( $ beanName ) ; // load the bean descriptor $ sessionBeanDescriptor = $ objectManager -> getObjectDescriptors ( ) -> get ( get_class ( $ sessionBean ) ) ; // initialize the local proxy instance return new LocalProxy ( $ beanManager , $ sessionBeanDescriptor , $ sessionBean ) ; }
This returns a local 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 local proxy to the requested session bean .