@Service public class JdbcRecoveryResourceHandler extends Object implements RecoveryResourceHandler
| Constructor and Description |
|---|
JdbcRecoveryResourceHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnections(List connList)
close the connections that were used to provide xa-resources for recovery
|
String[] |
getdbUserPasswordOfJdbcConnectionPool(JdbcConnectionPool jdbcConnectionPool)
gets the user-name & password for the jdbc-connection-pool
|
void |
loadXAResourcesAndItsConnections(List xaresList,
List connList)
load xa-resource instances for recovery
|
public void loadXAResourcesAndItsConnections(List xaresList, List connList)
loadXAResourcesAndItsConnections in interface RecoveryResourceHandlerxaresList - 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.public void closeConnections(List connList)
closeConnections in interface RecoveryResourceHandlerconnList - list of connectionspublic String[] getdbUserPasswordOfJdbcConnectionPool(JdbcConnectionPool jdbcConnectionPool)
jdbcConnectionPool - connection poolCopyright © 2017. All rights reserved.