Class JndiDataSourceService

    • Constructor Detail

      • JndiDataSourceService

        public JndiDataSourceService()
    • Method Detail

      • clearCache

        public void clearCache()
        Description copied from interface: DataSourceService
        This method clears the JNDI DS cache. The need exists because after a JNDI connection edit the old DS must be removed from the cache.
        Specified by:
        clearCache in interface DataSourceService
      • clearDataSource

        public void clearDataSource​(String dsName)
        Description copied from interface: DataSourceService
        This method clears the JNDI DS cache. The need exists because after a JNDI connection edit the old DS must be removed from the cache.
        Specified by:
        clearDataSource in interface DataSourceService
      • getDSBoundName

        public String getDSBoundName​(String dsName)
                              throws DatasourceServiceException
        Description copied from interface: DataSourceService
        Since JNDI is supported different ways in different app servers, it's nearly impossible to have a ubiquitous way to look up a datasource. This method is intended to hide all the lookups that may be required to find a jndi name, and return the actual bound name.
        Specified by:
        getDSBoundName in interface DataSourceService
        Parameters:
        dsName - The Datasource name (like SampleData)
        Returns:
        The bound DS name if it is bound in JNDI (like "jdbc/SampleData")
        Throws:
        DatasourceServiceException