/** * INTERNAL: * Put the local command connection of this transport in JNDI and return it */ protected void createLocalConnectionInJNDI() { try { // Register the remote connection in JNDI naming service RMIRemoteCommandConnection remoteConnectionObject; if (this.isRMIOverIIOP()) { remoteConnectionObject = new org.eclipse.persistence.internal.sessions.coordination.rmi.iiop.RMIRemoteCommandConnectionImpl(rcm); } else { remoteConnectionObject = new RMIRemoteCommandConnectionImpl(rcm); } Object[] args = { rcm.getServiceId().getId() }; rcm.logDebug("register_local_connection_in_jndi", args); getLocalHostContext().rebind(rcm.getServiceId().getId(), remoteConnectionObject); localConnection = new RMIRemoteConnection(remoteConnectionObject); } catch (Exception exception) { rcm.handleException(RemoteCommandManagerException.errorBindingConnection(rcm.getServiceId().toString(), exception)); } }
/** * INTERNAL: * Put the local command connection of this transport in the Registry and return it */ protected RemoteConnection createLocalConnectionInRegistry() { String fullURL = formatURLforRegistry(rcm.getServiceId().getURL(), rcm.getServiceId().getId()); try { // Register the remote connection in RMI Registry naming service RMIRemoteCommandConnectionImpl remoteConnectionObject = new RMIRemoteCommandConnectionImpl(rcm); Object[] args = { fullURL }; rcm.logDebug("register_local_connection_in_registry", args); Naming.rebind(fullURL, remoteConnectionObject); localConnection = new RMIRemoteConnection(remoteConnectionObject); } catch (Exception exception) { rcm.handleException(RemoteCommandManagerException.errorBindingConnection(fullURL, exception)); } return localConnection; }
/** * INTERNAL: * Create the local command connection for this transport in a naming service and * return it. */ public void createLocalConnection() { // Register the remote connection in JNDI naming service Object connectionImpl = buildCORBAConnection(); Object[] args = { rcm.getServiceId().getId() }; rcm.logDebug("register_local_connection_in_jndi", args); try { getRemoteHostContext(rcm.getUrl()).rebind(rcm.getServiceId().getId(), connectionImpl); } catch (Exception exception) { rcm.handleException(RemoteCommandManagerException.errorBindingConnection(rcm.getServiceId().toString(), exception)); return; } localConnection = new CORBARemoteCommandConnection((CORBAConnection)connectionImpl); localConnection.setServiceId(rcm.getServiceId()); } }
/** * INTERNAL: * Put the local command connection of this transport in JNDI and return it */ protected void createLocalConnectionInJNDI() { try { // Register the remote connection in JNDI naming service RMIRemoteCommandConnection remoteConnectionObject; if (this.isRMIOverIIOP()) { remoteConnectionObject = new org.eclipse.persistence.internal.sessions.coordination.rmi.iiop.RMIRemoteCommandConnectionImpl(rcm); } else { remoteConnectionObject = new RMIRemoteCommandConnectionImpl(rcm); } Object[] args = { rcm.getServiceId().getId() }; rcm.logDebug("register_local_connection_in_jndi", args); getLocalHostContext().rebind(rcm.getServiceId().getId(), remoteConnectionObject); localConnection = new RMIRemoteConnection(remoteConnectionObject); } catch (Exception exception) { rcm.handleException(RemoteCommandManagerException.errorBindingConnection(rcm.getServiceId().toString(), exception)); } }
/** * INTERNAL: * Put the local command connection of this transport in JNDI and return it */ protected void createLocalConnectionInJNDI() { try { // Register the remote connection in JNDI naming service RMIRemoteCommandConnection remoteConnectionObject; if (this.isRMIOverIIOP()) { remoteConnectionObject = new org.eclipse.persistence.internal.sessions.coordination.rmi.iiop.RMIRemoteCommandConnectionImpl(rcm); } else { remoteConnectionObject = new RMIRemoteCommandConnectionImpl(rcm); } Object[] args = { rcm.getServiceId().getId() }; rcm.logDebug("register_local_connection_in_jndi", args); getLocalHostContext().rebind(rcm.getServiceId().getId(), remoteConnectionObject); localConnection = new RMIRemoteConnection(remoteConnectionObject); } catch (Exception exception) { rcm.handleException(RemoteCommandManagerException.errorBindingConnection(rcm.getServiceId().toString(), exception)); } }
/** * INTERNAL: * Put the local command connection of this transport in the Registry and return it */ protected RemoteConnection createLocalConnectionInRegistry() { String fullURL = formatURLforRegistry(rcm.getServiceId().getURL(), rcm.getServiceId().getId()); try { // Register the remote connection in RMI Registry naming service RMIRemoteCommandConnectionImpl remoteConnectionObject = new RMIRemoteCommandConnectionImpl(rcm); Object[] args = { fullURL }; rcm.logDebug("register_local_connection_in_registry", args); Naming.rebind(fullURL, remoteConnectionObject); localConnection = new RMIRemoteConnection(remoteConnectionObject); } catch (Exception exception) { rcm.handleException(RemoteCommandManagerException.errorBindingConnection(fullURL, exception)); } return localConnection; }
/** * INTERNAL: * Put the local command connection of this transport in the Registry and return it */ protected RemoteConnection createLocalConnectionInRegistry() { String fullURL = formatURLforRegistry(rcm.getServiceId().getURL(), rcm.getServiceId().getId()); try { // Register the remote connection in RMI Registry naming service RMIRemoteCommandConnectionImpl remoteConnectionObject = new RMIRemoteCommandConnectionImpl(rcm); Object[] args = { fullURL }; rcm.logDebug("register_local_connection_in_registry", args); Naming.rebind(fullURL, remoteConnectionObject); localConnection = new RMIRemoteConnection(remoteConnectionObject); } catch (Exception exception) { rcm.handleException(RemoteCommandManagerException.errorBindingConnection(fullURL, exception)); } return localConnection; }
/** * INTERNAL: * Create the local command connection for this transport in a naming service and * return it. */ public void createLocalConnection() { // Register the remote connection in JNDI naming service Object connectionImpl = buildCORBAConnection(); Object[] args = { rcm.getServiceId().getId() }; rcm.logDebug("register_local_connection_in_jndi", args); try { getRemoteHostContext(rcm.getUrl()).rebind(rcm.getServiceId().getId(), connectionImpl); } catch (Exception exception) { rcm.handleException(RemoteCommandManagerException.errorBindingConnection(rcm.getServiceId().toString(), exception)); return; } localConnection = new CORBARemoteCommandConnection((CORBAConnection)connectionImpl); localConnection.setServiceId(rcm.getServiceId()); } }
/** * INTERNAL: * Create the local command connection for this transport in a naming service and * return it. */ @Override public void createLocalConnection() { // Register the remote connection in JNDI naming service Object connectionImpl = buildCORBAConnection(); Object[] args = { rcm.getServiceId().getId() }; rcm.logDebug("register_local_connection_in_jndi", args); try { getRemoteHostContext(rcm.getUrl()).rebind(rcm.getServiceId().getId(), connectionImpl); } catch (Exception exception) { rcm.handleException(RemoteCommandManagerException.errorBindingConnection(rcm.getServiceId().toString(), exception)); return; } localConnection = new CORBARemoteCommandConnection((CORBAConnection)connectionImpl); localConnection.setServiceId(rcm.getServiceId()); } }