container/common/src/main/java/org/mobicents/slee/runtime/facilities/ActivityContextNamingFacilityImpl.java
public void bind(ActivityContextInterface aci, String aciName)
            throws NullPointerException, IllegalArgumentException,
            TransactionRequiredLocalException, NameAlreadyBoundException,
            FacilityException {
        // Check if we are in the context of a transaction.
       
    	sleeContainer.getTransactionManager().mandateTransaction();
            
        if (aciName == null)
            throw new NullPointerException("null aci name");
        else if (aciName.equals(""))
            throw new IllegalArgumentException("empty name");
        else if (aci == null )
            throw new NullPointerException ("Null ACI! ");
          
        try {        
        	org.mobicents.slee.container.activity.ActivityContextInterface sleeAci = (org.mobicents.slee.container.activity.ActivityContextInterface)aci;
        	ActivityContext ac = sleeAci.getActivityContext();
        	ActivityContextHandle ach = ac.getActivityContextHandle();
        	cacheData.bindName(ach,aciName);
	        ac.addNameBinding(aciName);
	        if (log.isDebugEnabled()) {
	        	log.debug("aci name "+aciName+" bound to "+ach+" . Tx is "+sleeContainer.getTransactionManager().getTransaction());
	        }
        } catch (NameAlreadyBoundException ex) {
            if (log.isDebugEnabled()) {
                log.debug("name already bound " + aciName);
            }
            throw ex;
        } catch (Exception e) {
        	throw new FacilityException("Failed to put ac name binding in cache", e);
        }
        
    }
public void bind(ActivityContextInterface aci, String aciName)
            throws NullPointerException, IllegalArgumentException,
            TransactionRequiredLocalException, NameAlreadyBoundException,
            FacilityException {
        // Check if we are in the context of a transaction.
       
    	sleeContainer.getTransactionManager().mandateTransaction();
            
        if (aciName == null)
            throw new NullPointerException("null aci name");
        else if (aciName.equals(""))
            throw new IllegalArgumentException("empty name");
        else if (aci == null )
            throw new NullPointerException ("Null ACI! ");
          
        try {        
        	org.mobicents.slee.container.activity.ActivityContextInterface sleeAci = (org.mobicents.slee.container.activity.ActivityContextInterface)aci;
        	ActivityContext ac = sleeAci.getActivityContext();
        	ActivityContextHandle ach = ac.getActivityContextHandle();
        	cacheData.bindName(ach,aciName);
	        ac.addNameBinding(aciName);
	        if (log.isDebugEnabled()) {
	        	log.debug("aci name "+aciName+" bound to "+ach+" . Tx is "+sleeContainer.getTransactionManager().getTransaction());
	        }
        } catch (NameAlreadyBoundException ex) {
            if (log.isDebugEnabled()) {
                log.debug("name already bound " + aciName);
            }
            throw ex;
        } catch (Exception e) {
        	throw new FacilityException("Failed to put ac name binding in cache", e);
        }
        
    }
public void bind ( ActivityContextInterface aci , String aciName ) throws NullPointerException , IllegalArgumentException , TransactionRequiredLocalException , NameAlreadyBoundException , FacilityException { // Check if we are in the context of a transaction. sleeContainer . getTransactionManager ( ) . mandateTransaction ( ) ; if ( aciName == null ) throw new NullPointerException ( "null aci name" ) ; else if ( aciName . equals ( "" ) ) throw new IllegalArgumentException ( "empty name" ) ; else if ( aci == null ) throw new NullPointerException ( "Null ACI! " ) ; try { org . mobicents . slee . container . activity . ActivityContextInterface sleeAci = ( org . mobicents . slee . container . activity . ActivityContextInterface ) aci ; ActivityContext ac = sleeAci . getActivityContext ( ) ; ActivityContextHandle ach = ac . getActivityContextHandle ( ) ; cacheData . bindName ( ach , aciName ) ; ac . addNameBinding ( aciName ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( "aci name " + aciName + " bound to " + ach + " . Tx is " + sleeContainer . getTransactionManager ( ) . getTransaction ( ) ) ; } } catch ( NameAlreadyBoundException ex ) { if ( log . isDebugEnabled ( ) ) { log . debug ( "name already bound " + aciName ) ; } throw ex ; } catch ( Exception e ) { throw new FacilityException ( "Failed to put ac name binding in cache" , e ) ; } }
/*
(non-Javadoc)

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