com.ibm.wsspi.rsadapter

Class WSProxyDSJNDINameAccessor

  • java.lang.Object
    • com.ibm.wsspi.rsadapter.WSProxyDSJNDINameAccessor


  • public class WSProxyDSJNDINameAccessor
    extends java.lang.Object

    This class provides the access to the mapping from the Proxy DataSource JNDI name to the Delegate DataSource JNDI name. This class contains a Map which is keyed on the Proxy DataSource JNDI name. The values of this map contain the JNDI names of the Delegate DataSources.

    There are two helper methods in this interface.

    • setCurrentDataSourceJndiName(String, String): This method is used to set the JNDI name of the Delegate DataSource for a particular Proxy DataSource.
    • getCurrentDataSourceJndiName(String): This method is used to get the JNDI name of the Delegate DataSource for a particular Proxy DataSource.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static java.lang.String getCurrentDataSourceJndiName(java.lang.String proxyJndiName)
      Get the current Delegate DataSource JNDI name for a particular Proxy Datasource from the map.
      static void setCurrentDataSourceJndiName(java.lang.String proxyJndiName, java.lang.String dsJndiName)
      Set the current Delegate DataSource JNDI name for a particular Proxy Datasource to the map.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WSProxyDSJNDINameAccessor

        public WSProxyDSJNDINameAccessor()
    • Method Detail

      • setCurrentDataSourceJndiName

        public static void setCurrentDataSourceJndiName(java.lang.String proxyJndiName,
                                        java.lang.String dsJndiName)
        Set the current Delegate DataSource JNDI name for a particular Proxy Datasource to the map.
        Parameters:
        proxyJndiName - the JNDI name of the proxy datasource
        dsJndiName - the JNDI name of the delegate datasource
      • getCurrentDataSourceJndiName

        public static java.lang.String getCurrentDataSourceJndiName(java.lang.String proxyJndiName)
                                                             throws NoDataSourceJNDINameException
        Get the current Delegate DataSource JNDI name for a particular Proxy Datasource from the map.
        Parameters:
        proxyJndiName - the JNDI name of the Proxy DataSource
        Returns:
        String the JNDI name of the Delegate DataSource
        Throws:
        NoDataSourceJNDINameException - if no Delegate Datasource JNDI name is set for this Proxy DataSource.
IBM WebSphere Application ServerTM
Release 9.0