/** * ADVANCED: * Remove the local connection from remote accesses. The implementation removes the local connection from JNDI or RMI registry and set it to null. * This method is invoked internally by TopLink when the RCM is shutdown and should not be invoked by user's application. */ @Override public void removeLocalConnection() { String unbindName = null; try { if (namingServiceType == JNDI_NAMING_SERVICE) { unbindName = rcm.getServiceId().getId(); getContext(getLocalContextProperties()).unbind(unbindName); } else { return; } } catch (Exception exception) { rcm.handleException(RemoteCommandManagerException.errorUnbindingLocalConnection(unbindName, exception)); } localConnection = null; }
/** * ADVANCED: * Remove the local connection from remote accesses. The implementation removes the local connection from JNDI or RMI registry and set it to null. * This method is invoked internally by TopLink when the RCM is shutdown and should not be invoked by user's application. */ public void removeLocalConnection() { String unbindName = null; try { if (namingServiceType == JNDI_NAMING_SERVICE) { unbindName = rcm.getServiceId().getId(); getContext(getLocalContextProperties()).unbind(unbindName); } else { return; } } catch (Exception exception) { rcm.handleException(RemoteCommandManagerException.errorUnbindingLocalConnection(unbindName, exception)); } localConnection = null; }
/** * ADVANCED: * Remove the local connection from remote accesses. The implementation removes the local connection from JNDI or RMI registry and set it to null. * This method is invoked internally by TopLink when the RCM is shutdown and should not be invoked by user's application. */ public void removeLocalConnection() { String unbindName = null; try { if (namingServiceType == JNDI_NAMING_SERVICE) { unbindName = rcm.getServiceId().getId(); getContext(getLocalContextProperties()).unbind(unbindName); } else { return; } } catch (Exception exception) { rcm.handleException(RemoteCommandManagerException.errorUnbindingLocalConnection(unbindName, exception)); } localConnection = null; }
rcm.handleException(RemoteCommandManagerException.errorUnbindingLocalConnection(unbindName, exception)); } finally {
rcm.handleException(RemoteCommandManagerException.errorUnbindingLocalConnection(unbindName, exception)); } finally {
rcm.handleException(RemoteCommandManagerException.errorUnbindingLocalConnection(unbindName, exception));