Class JdbcRecoveryResourceHandler

    • Constructor Detail

      • JdbcRecoveryResourceHandler

        public JdbcRecoveryResourceHandler()
    • Method Detail

      • loadXAResourcesAndItsConnections

        public void loadXAResourcesAndItsConnections​(List xaresList,
                                                     List connList)
        load xa-resource instances for recovery
        Specified by:
        loadXAResourcesAndItsConnections in interface RecoveryResourceHandler
        Parameters:
        xaresList - List of xa-resources, populate it with the xa-capable resources that needs recovery
        connList - populate it with connections used to provide these xa-resources, if any. Transaction-recovery will call close the connections in connList once recovery is over.
      • closeConnections

        public void closeConnections​(List connList)
        close the connections that were used to provide xa-resources for recovery
        Specified by:
        closeConnections in interface RecoveryResourceHandler
        Parameters:
        connList - list of connections
      • getdbUserPasswordOfJdbcConnectionPool

        public String[] getdbUserPasswordOfJdbcConnectionPool​(JdbcConnectionPool jdbcConnectionPool)
        gets the user-name & password for the jdbc-connection-pool
        Parameters:
        jdbcConnectionPool - connection pool
        Returns:
        user, password