com.sun.enterprise.transaction.spi
Interface RecoveryResourceHandler


@Contract
public interface RecoveryResourceHandler

RecoveryResourceHandler will be used by transaction-manager to get resource instances.
Using these resource instances, transaction recovery will be done.
All type of (xa)resources will have a resource recovery handler which will be used by transaction-manager

Author:
Jagadish Ramu

Method Summary
 void closeConnections(java.util.List connList)
          close the connections that were used to provide xa-resources for recovery
 void loadXAResourcesAndItsConnections(java.util.List xaresList, java.util.List connList)
          load xa-resource instances for recovery
 

Method Detail

loadXAResourcesAndItsConnections

void loadXAResourcesAndItsConnections(java.util.List xaresList,
                                      java.util.List connList)
load xa-resource instances for recovery

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

void closeConnections(java.util.List connList)
close the connections that were used to provide xa-resources for recovery

Parameters:
connList - list of connections


Copyright © 2012 GlassFish Community. All Rights Reserved.