AppserverIo\Appserver\PersistenceContainer\BeanManager::removeStatefulSessionBean PHP Метод

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

Removes the stateful session bean with the passed session-ID and class name from the bean manager.
public removeStatefulSessionBean ( string $sessionId, string $className ) : void
$sessionId string The session-ID of the stateful session bean to retrieve
$className string The class name of the session bean to retrieve
Результат void
    public function removeStatefulSessionBean($sessionId, $className)
    {
        // create a unique SFSB identifier
        $identifier = SessionBeanUtil::createIdentifier($sessionId, $className);
        // load the map with the SFSBs
        $sessionBeans = $this->getStatefulSessionBeans();
        // query whether the SFSB with the passed identifier exists
        if ($sessionBeans->exists($identifier)) {
            $sessionBeans->remove($identifier, array($this, 'destroyBeanInstance'));
        }
    }