/** * Calls the unbind api of COS Naming and uses the exception mapper * class to map the exceptions * * @param path NameComponent[] object * @throws NotFound No objects under the name. If leaf * is not found, that's OK according to the JNDI spec * @throws org.omg.CosNaming.NamingContextPackage.CannotProceed Unable to obtain a continuation context * @throws org.omg.CosNaming.NamingContextPackage.InvalidName Name not understood. */ private void callUnbind(NameComponent[] path) throws NamingException { if (_nc == null) throw IIOPLogger.ROOT_LOGGER.notANamingContext(path.toString()); try { _nc.unbind(path); } catch (NotFound e) { // If leaf is the one missing, return success // as per JNDI spec if (leafNotFound(e, path[path.length - 1])) { // do nothing } else { throw org.wildfly.iiop.openjdk.naming.jndi.ExceptionMapper.mapException(e, this, path); } } catch (Exception e) { throw org.wildfly.iiop.openjdk.naming.jndi.ExceptionMapper.mapException(e, this, path); } }
public void unbind (NameComponent[] nc) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName { context.unbind (nc); }
public synchronized void unregisterName() throws NotFound, CannotProceed, InvalidName { if (namingContext_ != null) { if (registeredName_ != null) { if (logger_.isInfoEnabled()) { logger_.info("namingContext.unbind(" + format(registeredName_) + ")"); } namingContext_.unbind(registeredName_); registeredName_ = null; } } }
/** * Calls the unbind api of COS Naming and uses the exception mapper * class to map the exceptions * * @param path NameComponent[] object * @throws NotFound No objects under the name. If leaf * is not found, that's OK according to the JNDI spec * @throws org.omg.CosNaming.NamingContextPackage.CannotProceed Unable to obtain a continuation context * @throws org.omg.CosNaming.NamingContextPackage.InvalidName Name not understood. */ private void callUnbind(NameComponent[] path) throws NamingException { if (_nc == null) throw IIOPLogger.ROOT_LOGGER.notANamingContext(path.toString()); try { _nc.unbind(path); } catch (NotFound e) { // If leaf is the one missing, return success // as per JNDI spec if (leafNotFound(e, path[path.length - 1])) { // do nothing } else { throw org.wildfly.iiop.openjdk.naming.jndi.ExceptionMapper.mapException(e, this, path); } } catch (Exception e) { throw org.wildfly.iiop.openjdk.naming.jndi.ExceptionMapper.mapException(e, this, path); } }
/** * Calls the unbind api of COS Naming and uses the exception mapper * class to map the exceptions * * @param path NameComponent[] object * @throws NotFound No objects under the name. If leaf * is not found, that's OK according to the JNDI spec * @throws org.omg.CosNaming.NamingContextPackage.CannotProceed Unable to obtain a continuation context * @throws org.omg.CosNaming.NamingContextPackage.InvalidName Name not understood. */ private void callUnbind(NameComponent[] path) throws NamingException { if (_nc == null) throw IIOPLogger.ROOT_LOGGER.notANamingContext(path.toString()); try { _nc.unbind(path); } catch (NotFound e) { // If leaf is the one missing, return success // as per JNDI spec if (leafNotFound(e, path[path.length - 1])) { // do nothing } else { throw org.wildfly.iiop.openjdk.naming.jndi.ExceptionMapper.mapException(e, this, path); } } catch (Exception e) { throw org.wildfly.iiop.openjdk.naming.jndi.ExceptionMapper.mapException(e, this, path); } }
context.unbind(tail);
context.unbind(tail);
/** * Calls the unbind api of COS Naming and uses the exception mapper * class to map the exceptions * @param path NameComponent[] object * @exception NotFound No objects under the name. If leaf * is not found, that's OK according to the JNDI spec * @exception CannotProceed Unable to obtain a continuation context * @exception InvalidName Name not understood. */ private void callUnbind(NameComponent[] path) throws NamingException { if (_nc == null) throw new ConfigurationException( "Context does not have a corresponding NamingContext"); try { _nc.unbind(path); } catch (NotFound e) { // If leaf is the one missing, return success // as per JNDI spec if (leafNotFound(e, path[path.length-1])) { // do nothing } else { throw ExceptionMapper.mapException(e, this, path); } } catch (Exception e) { throw ExceptionMapper.mapException(e, this, path); } }
context.unbind (binding.getName ()); DefaultTreeModel model = (DefaultTreeModel)getModel (); model.removeNodeFromParent (node);
/**Request the transaction service to stop any further transactional activity. * * @param immediate Indicates whether to ignore running transactions. * * @return * * @see */ public static void shutdown( boolean immediate ) { // Remove the admin and factory objects from the naming service. if( namingContext != null ) try { NameComponent nc = new NameComponent(TransactionFactoryHelper.id(),""); NameComponent path[] = {nc}; namingContext.unbind(path); namingContext = null; } catch( Exception exc ) {} // Inform the local TransactionFactory and CurrentImpl classes that no more // transactional activity may occur. TransactionFactoryImpl.deactivate(); CurrentImpl.deactivate(); // Shut down the basic transaction services. currentInstance.shutdown(immediate); // Discard the factory and current instances. currentInstance = null; factoryInstance = null; //adminInstance = null; active = false; }
context.unbind(subName); } else { NameComponent name = n[0];
context.unbind(subName);