oracle.toplink.remote
Class AbstractJNDIClusteringService

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--oracle.toplink.remote.AbstractClusteringService
              |
              +--oracle.toplink.remote.AbstractJNDIClusteringService
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
CORBAJNDIClusteringService, CORBAJNDIClusteringService, CORBAJNDIClusteringService, JMSClusteringService, RMIJNDIClusteringService

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

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AbstractJNDIClusteringService(Session session)
          PUBLIC: Creates an AbstractJNDIClusteringService
AbstractJNDIClusteringService(java.lang.String multicastAddress, int multicastPort, Session session)
          ADVANCED: Creates an AbstractJNDIClusteringService
 
Method Summary
TypeMethod
 javax.naming.Context getContext(java.lang.String jndiHostURL)
          Deprecated. Since 4.5
 java.util.Hashtable getInitialContextProperties()
          ADVANCED: This method allows the user to get the Context properties that will be used to create the initial context.
 java.lang.String getPassword()
          Deprecated. since 4.5
 java.lang.String getUserName()
          Deprecated. since 4.5
 void setContext(javax.naming.Context context)
          Sets the active JNDI Context to store the remote service in
 void setInitialContextFactoryName(java.lang.String initialContextFactory)
          ADVANCED: Use this method to set the Initial Conext Factory for accessing JNDI.
 void setInitialContextProperties(java.util.Hashtable properties)
          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 localHostURL)
          This method will set the Host address of the JNDI service
 void setPassword(java.lang.String password)
          Sets the Password if one is required to access the JNDI service
 void setUserName(java.lang.String userName)
          Sets the Username if one is required to access the JNDI service
 
Methods inherited from class oracle.toplink.remote.AbstractClusteringService
createRemoteConnection, getAnnouncementDelay, getCommunicationSocket, getDispatcher, getLocalRemoteConnection, getMulticastGroupAddress, getMulticastPort, getSessionId, getTimeToLive, registerDispatcher, setAnnouncementDelay, setDispatcher, setMulticastGroupAddress, setMulticastPort, setSessionId, setTimeToLive, stopListening
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractJNDIClusteringService

public AbstractJNDIClusteringService(Session session)
PUBLIC: Creates an AbstractJNDIClusteringService
Parameters:
jndiHostName - The host name of the JNDI service

AbstractJNDIClusteringService

public AbstractJNDIClusteringService(java.lang.String multicastAddress,
                                     int multicastPort,
                                     Session session)
ADVANCED: Creates an AbstractJNDIClusteringService
Parameters:
multicastAddress - The address of the multicast group
multicastPort - The port the multicast group is listening on
Method Detail

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

setContext

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

getInitialContextProperties

public java.util.Hashtable getInitialContextProperties()
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)
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. since 4.5

ADVANCED: returns the Username if one is required to access the JNDI service

setUserName

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

getPassword

public java.lang.String getPassword()
Deprecated. since 4.5

ADVANCED: returns the Username if one is required to access the JNDI service

setPassword

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

setLocalHostURL

public void setLocalHostURL(java.lang.String localHostURL)
This method will set the Host address of the JNDI service
Overrides:
setLocalHostURL in class AbstractClusteringService
Parameters:
jndiHostURL -  

setInitialContextFactoryName

public void setInitialContextFactoryName(java.lang.String initialContextFactory)
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