container/common/src/main/java/org/mobicents/slee/runtime/facilities/ActivityContextNamingFacilityImpl.java
public ActivityContextInterface lookup(String acName)
            throws NullPointerException, TransactionRequiredLocalException,
            FacilityException {
            	
    	sleeContainer.getTransactionManager().mandateTransaction();
       
        if (acName == null)
            throw new NullPointerException("null ac name");
        
        try {        
            
	        ActivityContextHandle ach = (ActivityContextHandle) cacheData.lookupName(acName);
	        
	        if (log.isDebugEnabled()) {
	        	log.debug("lookup of aci name "+acName+" result is "+ach+" . Tx is "+sleeContainer.getTransactionManager().getTransaction());
	        }
	        
            if (ach == null) {
        		return null;
        	}       	
        	ActivityContext ac = sleeContainer.getActivityContextFactory().getActivityContext(ach);
        	if (ac == null) {
        		cacheData.unbindName(acName);
        		throw new FacilityException("name found but unable to retrieve activity context");
        	}
        	
        	return ac.getActivityContextInterface();
        	        	        
        } catch (Exception e) {
        	throw new FacilityException("Failed to look-up ac name binding", e);
        }
        
    }
public ActivityContextInterface lookup(String acName)
            throws NullPointerException, TransactionRequiredLocalException,
            FacilityException {
            	
    	sleeContainer.getTransactionManager().mandateTransaction();
       
        if (acName == null)
            throw new NullPointerException("null ac name");
        
        try {        
            
	        ActivityContextHandle ach = (ActivityContextHandle) cacheData.lookupName(acName);
	        
	        if (log.isDebugEnabled()) {
	        	log.debug("lookup of aci name "+acName+" result is "+ach+" . Tx is "+sleeContainer.getTransactionManager().getTransaction());
	        }
	        
            if (ach == null) {
        		return null;
        	}       	
        	ActivityContext ac = sleeContainer.getActivityContextFactory().getActivityContext(ach);
        	if (ac == null) {
        		cacheData.unbindName(acName);
        		throw new FacilityException("name found but unable to retrieve activity context");
        	}
        	
        	return ac.getActivityContextInterface();
        	        	        
        } catch (Exception e) {
        	throw new FacilityException("Failed to look-up ac name binding", e);
        }
        
    }
public ActivityContextInterface lookup ( String acName ) throws NullPointerException , TransactionRequiredLocalException , FacilityException { sleeContainer . getTransactionManager ( ) . mandateTransaction ( ) ; if ( acName == null ) throw new NullPointerException ( "null ac name" ) ; try { ActivityContextHandle ach = ( ActivityContextHandle ) cacheData . lookupName ( acName ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( "lookup of aci name " + acName + " result is " + ach + " . Tx is " + sleeContainer . getTransactionManager ( ) . getTransaction ( ) ) ; } if ( ach == null ) { return null ; } ActivityContext ac = sleeContainer . getActivityContextFactory ( ) . getActivityContext ( ach ) ; if ( ac == null ) { cacheData . unbindName ( acName ) ; throw new FacilityException ( "name found but unable to retrieve activity context" ) ; } return ac . getActivityContextInterface ( ) ; } catch ( Exception e ) { throw new FacilityException ( "Failed to look-up ac name binding" , e ) ; } }
/*
(non-Javadoc)

@see javax.slee.facilities.ActivityContextNamingFacility#lookup(java.lang.String)
/ * ( non - Javadoc )