Module org.eclipse.persistence.core
Class RMITransportManager
java.lang.Object
org.eclipse.persistence.sessions.coordination.TransportManager
org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager
- Direct Known Subclasses:
RMIIIOPTransportManager
Purpose: Provide an RMI transport implementation for RCM.
Description: This class manages the RMI remote connections to other RCM service instances and posts the local RMI connection to this service instance in a name service so that other RCM service instances can connect to it.
- Since:
- OracleAS TopLink 10g (9.0.4)
-
Field Summary
Fields inherited from class org.eclipse.persistence.sessions.coordination.TransportManager
connectionsToExternalServices, DEFAULT_CONTEXT_FACTORY, DEFAULT_DEDICATED_CONNECTION_KEY, DEFAULT_DEDICATED_CONNECTION_VALUE, DEFAULT_IIOP_URL_PORT, DEFAULT_IIOP_URL_PROTOCOL, DEFAULT_NAMING_SERVICE, DEFAULT_REMOVE_CONNECTION_ON_ERROR_MODE, DEFAULT_URL_PORT, DEFAULT_URL_PROTOCOL, DEFAULT_USER_NAME, JNDI_NAMING_SERVICE, localConnection, localContextProperties, namingServiceType, rcm, REGISTRY_NAMING_SERVICE, remoteContextProperties, securableObjectHolder, shouldRemoveConnectionOnError
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateConnection
(ServiceId connectionServiceId) INTERNAL: Create and return an RMI remote connection to the specified serviceprotected RemoteConnection
createConnectionFromJNDI
(String remoteObjectIdentifier, String hostURL) INTERNAL: Look the specified remote object up in JNDI and return a Connection to it.protected RemoteConnection
createConnectionFromRegistry
(String remoteObjectIdentifier, String hostURL) INTERNAL: Look the specified remote object up in the RMIRegistry and return a Connection to it.void
INTERNAL: Create the local command connection for this transport in a naming service and return it.protected void
INTERNAL: Put the local command connection of this transport in JNDI and return itprotected RemoteConnection
INTERNAL: Put the local command connection of this transport in the Registry and return itINTERNAL: Return the default local URL for JNDI lookupsINTERNAL: Return the context used for looking up in local JNDI.void
INTERNAL: Initialize default properties for RMI.void
ADVANCED: Remove the local connection from remote accesses.Methods inherited from class org.eclipse.persistence.sessions.coordination.TransportManager
addConnectionToExternalService, connectBackToRemote, createConnections, createDiscoveryManager, decrypt, discardConnections, encrypt, getConnectionsToExternalServices, getConnectionsToExternalServicesForCommandPropagation, getConnectionToLocalHost, getContext, getEncryptedPassword, getInitialContextFactoryName, getLocalContextProperties, getNamingServiceType, getPassword, getRemoteCommandManager, getRemoteContextProperties, getRemoteHostContext, getUserName, hasPassword, newTransportManager, removeAllConnectionsToExternalServices, removeConnectionToExternalService, setConfig, setEncryptedPassword, setEncryptionClassName, setInitialContextFactoryName, setLocalContextProperties, setNamingServiceType, setPassword, setRemoteCommandManager, setRemoteContextProperties, setShouldRemoveConnectionOnError, setUserName, shouldRemoveConnectionOnError
-
Constructor Details
-
RMITransportManager
-
-
Method Details
-
createConnection
INTERNAL: Create and return an RMI remote connection to the specified service- Specified by:
createConnection
in classTransportManager
-
createConnectionFromJNDI
INTERNAL: Look the specified remote object up in JNDI and return a Connection to it. -
createConnectionFromRegistry
protected RemoteConnection createConnectionFromRegistry(String remoteObjectIdentifier, String hostURL) INTERNAL: Look the specified remote object up in the RMIRegistry and return a Connection to it. -
createLocalConnection
public void createLocalConnection()INTERNAL: Create the local command connection for this transport in a naming service and return it.- Specified by:
createLocalConnection
in classTransportManager
-
createLocalConnectionInJNDI
protected void createLocalConnectionInJNDI()INTERNAL: Put the local command connection of this transport in JNDI and return it -
createLocalConnectionInRegistry
INTERNAL: Put the local command connection of this transport in the Registry and return it -
getLocalHostContext
INTERNAL: Return the context used for looking up in local JNDI. -
getDefaultLocalUrl
INTERNAL: Return the default local URL for JNDI lookups -
initialize
public void initialize()INTERNAL: Initialize default properties for RMI.- Overrides:
initialize
in classTransportManager
-
removeLocalConnection
public void removeLocalConnection()ADVANCED: Remove the local connection from remote accesses. The implementation removes the local connection from JNDI or the RMI registry, un-exports it from the RMI runtime, and sets it to null. This method is invoked internally by EclipseLink when the RCM is shutdown and should not be invoked by user's application.- Specified by:
removeLocalConnection
in classTransportManager
-