public void removeAppBindings ( ModuleMetaData mmd , List < String > names ) { ApplicationMetaData amd = mmd . getApplicationMetaData ( ) ; Lock writeLock = javaColonLock . writeLock ( ) ; writeLock . lock ( ) ; try { JavaColonNamespaceBindings < EJBBinding > bindings = getAppBindingMap ( amd ) ; // getAppBindings returns a non-null value for ( String name : names ) { bindings . unbind ( name ) ; } } finally { writeLock . unlock ( ) ; } }
Remove names from the application mapping . If all the bindings have been removed for an application remove the application mapping .