EclipseLink 1.0_1.0M2 API Reference - Incubation

org.eclipse.persistence.sessions.remote
Class AbstractJNDIClusteringService

java.lang.Object
  extended by java.lang.Thread
      extended by org.eclipse.persistence.sessions.remote.AbstractClusteringService
          extended by org.eclipse.persistence.sessions.remote.AbstractJNDIClusteringService
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
CORBAJNDIClusteringService, JMSClusteringService, RMIJNDIClusteringService, RMIJNDIClusteringService

Deprecated. since OracleAS TopLink 10g (10.1.3). This class is replaced by TransportManager

public abstract class AbstractJNDIClusteringService
extends AbstractClusteringService

Purpose:To Provide a framework for offering customers the ability to automatically connect multiple sessions for synchrnization.

Descripton:This thread object will place a remote dispatcher in the specified JNDI space. it will also monitor the specified multicast socket to allow other sessions to connect.

See Also:
CacheSynchronizationManager, AbstractClusteringService
Author:
Gordon Yorke

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  java.util.Hashtable contextProperties
          Deprecated.  
protected  javax.naming.Context localContext
          Deprecated. Holds the reference to the context to be used to register the dispatcher object
protected  char[] password
          Deprecated.  
protected  java.lang.String userName
          Deprecated.  
 
Fields inherited from class org.eclipse.persistence.sessions.remote.AbstractClusteringService
announcementDelay, applicationName, communicationSocket, DEFAULT_MULTICAST_GROUP, DEFAULT_MULTICAST_PORT, DEFAULT_RECV_BUFFER_SIZE, dispatcher, localHostURL, multicastGroupAddress, multicastPort, reconnectionPolicy, session, sessionId, stopListening, timeToLive
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AbstractJNDIClusteringService(Session session)
          Deprecated. PUBLIC: Creates an AbstractJNDIClusteringService
AbstractJNDIClusteringService(java.lang.String multicastAddress, int multicastPort, Session session)
          Deprecated. ADVANCED: Creates an AbstractJNDIClusteringService
 
Method Summary
 javax.naming.Context getContext(java.util.Hashtable properties)
          Deprecated. INTERNAL: Returns the active JNDI Context to store the remote service in
 javax.naming.Context getContext(java.lang.String jndiHostURL)
          Deprecated. Since 4.5
 java.util.Hashtable getInitialContextProperties()
          Deprecated. ADVANCED: This method allows the user to get the Context properties that will be used to create the initial context.
 javax.naming.Context getLocalContext()
          Deprecated. INTERNAL: Returns the active JNDI Context to store the remote service in.
 java.lang.String getPassword()
          Deprecated. ADVANCED: returns the Username if one is required to access the JNDI service
 java.lang.String getUserName()
          Deprecated. ADVANCED: returns the Username if one is required to access the JNDI service
 void setContext(javax.naming.Context context)
          Deprecated. Sets the active JNDI Context to store the remote service in.
 void setInitialContextFactoryName(java.lang.String initialContextFactory)
          Deprecated. ADVANCED: Use this method to set the Initial Conext Factory for accessing JNDI.
 void setInitialContextProperties(java.util.Hashtable properties)
          Deprecated. ADVANCED: This method allows the user to set the Context properties for creating the initial context for a JNDI connection if the properties have not allready been set globally.
 void setLocalHostURL(java.lang.String url)
          Deprecated. PUBLIC: Set the host address of the naming service url.
 void setPassword(java.lang.String password)
          Deprecated. Sets the Password if one is required to access the JNDI service
 void setUserName(java.lang.String userName)
          Deprecated. Sets the Username if one is required to access the JNDI service
 
Methods inherited from class org.eclipse.persistence.sessions.remote.AbstractClusteringService
announceSession, buildSessionId, connectBackToRemote, createRemoteConnection, deregisterDispatcher, getAnnouncementDelay, getApplicationName, getCommunicationSocket, getDispatcher, getLocalHostURL, getLocalRemoteConnection, getMulticastGroupAddress, getMulticastPort, getReconnectPolicy, getSession, getSessionId, getTimeToLive, initialize, listen, receivedAnnouncement, reconnect, registerDispatcher, run, setAnnouncementDelay, setApplicationName, setDispatcher, setMulticastGroupAddress, setMulticastPort, setReconnectPolicy, setSession, setSessionId, setTimeToLive, stopListening
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

localContext

protected javax.naming.Context localContext
Deprecated. 
Holds the reference to the context to be used to register the dispatcher object


userName

protected java.lang.String userName
Deprecated. 

password

protected char[] password
Deprecated. 

contextProperties

protected java.util.Hashtable contextProperties
Deprecated. 
Constructor Detail

AbstractJNDIClusteringService

public AbstractJNDIClusteringService(Session session)
Deprecated. 
PUBLIC: Creates an AbstractJNDIClusteringService

Parameters:
jndiHostName - The host name of the JNDI service.

AbstractJNDIClusteringService

public AbstractJNDIClusteringService(java.lang.String multicastAddress,
                                     int multicastPort,
                                     Session session)
Deprecated. 
ADVANCED: Creates an AbstractJNDIClusteringService

Parameters:
multicastAddress - The address of the multicast group
multicastPort - The port the multicast group is listening on.
Method Detail

getLocalContext

public javax.naming.Context getLocalContext()
Deprecated. 
INTERNAL: Returns the active JNDI Context to store the remote service in.


getContext

public javax.naming.Context getContext(java.lang.String jndiHostURL)
Deprecated. Since 4.5

ADVANCED: Returns the active JNDI Context to store the remote service in


getContext

public javax.naming.Context getContext(java.util.Hashtable properties)
Deprecated. 
INTERNAL: Returns the active JNDI Context to store the remote service in


setContext

public void setContext(javax.naming.Context context)
Deprecated. 
Sets the active JNDI Context to store the remote service in.


setLocalHostURL

public void setLocalHostURL(java.lang.String url)
Deprecated. 
Description copied from class: AbstractClusteringService
PUBLIC: Set the host address of the naming service url.

Overrides:
setLocalHostURL in class AbstractClusteringService
Parameters:
url - jndi host url

getInitialContextProperties

public java.util.Hashtable getInitialContextProperties()
Deprecated. 
ADVANCED: This method allows the user to get the Context properties that will be used to create the initial context.


setInitialContextProperties

public void setInitialContextProperties(java.util.Hashtable properties)
Deprecated. 
ADVANCED: This method allows the user to set the Context properties for creating the initial context for a JNDI connection if the properties have not allready been set globally. Usually if TopLink is running within the same VM as this attribute is not required. Use this method if TopLink is having problems connecting to the JNDI Service, or JMS Service


getUserName

public java.lang.String getUserName()
Deprecated. 
ADVANCED: returns the Username if one is required to access the JNDI service


setUserName

public void setUserName(java.lang.String userName)
Deprecated. 
Sets the Username if one is required to access the JNDI service


getPassword

public java.lang.String getPassword()
Deprecated. 
ADVANCED: returns the Username if one is required to access the JNDI service


setPassword

public void setPassword(java.lang.String password)
Deprecated. 
Sets the Password if one is required to access the JNDI service


setInitialContextFactoryName

public void setInitialContextFactoryName(java.lang.String initialContextFactory)
Deprecated. 
ADVANCED: Use this method to set the Initial Conext Factory for accessing JNDI. This method is only required if the user is having difficulties getting TopLink to connect to JNDI or JMS


EclipseLink 1.0_1.0M2 API Reference - Incubation