Package org.glassfish.jdbc.recovery
Class JdbcRecoveryResourceHandler
- java.lang.Object
-
- org.glassfish.jdbc.recovery.JdbcRecoveryResourceHandler
-
- All Implemented Interfaces:
RecoveryResourceHandler
@Service public class JdbcRecoveryResourceHandler extends Object implements RecoveryResourceHandler
Recovery Handler for Jdbc Resources- Author:
- Jagadish Ramu
-
-
Constructor Summary
Constructors Constructor Description JdbcRecoveryResourceHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeConnections(List connList)
close the connections that were used to provide xa-resources for recoveryString[]
getdbUserPasswordOfJdbcConnectionPool(JdbcConnectionPool jdbcConnectionPool)
gets the user-name & password for the jdbc-connection-poolvoid
loadXAResourcesAndItsConnections(List xaresList, List connList)
load xa-resource instances for recovery
-
-
-
Method Detail
-
loadXAResourcesAndItsConnections
public void loadXAResourcesAndItsConnections(List xaresList, List connList)
load xa-resource instances for recovery- Specified by:
loadXAResourcesAndItsConnections
in interfaceRecoveryResourceHandler
- Parameters:
xaresList
- List of xa-resources, populate it with the xa-capable resources that needs recoveryconnList
- 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 interfaceRecoveryResourceHandler
- 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
-
-