public class JDBCXARecovery extends Object implements XAResourceRecovery
| Modifier and Type | Field and Description |
|---|---|
static String |
DATABASE_JNDI_NAME |
static String |
PASSWORD |
static String |
USER_NAME |
| Constructor and Description |
|---|
JDBCXARecovery() |
| Modifier and Type | Method and Description |
|---|---|
XAResource |
getXAResource()
Get a resource to use for recovery purposes.
|
boolean |
hasMoreResources()
Iterate through all of the resources this instance provides
access to.
|
boolean |
initialise(String parameter)
The recovery module will have chopped off this class name already.
|
public static final String DATABASE_JNDI_NAME
public static final String USER_NAME
public static final String PASSWORD
public JDBCXARecovery()
throws SQLException
SQLExceptionpublic boolean initialise(String parameter) throws SQLException
initialise in interface XAResourceRecoveryparameter - An arbitrary string from which initialization data
is obtained.true if initialization happened successfully,
false otherwise.SQLExceptionpublic XAResource getXAResource() throws SQLException
XAResourceRecoverygetXAResource in interface XAResourceRecoverySQLExceptionpublic boolean hasMoreResources()
XAResourceRecoveryhasMoreResources in interface XAResourceRecoverytrue if this instance can provide more
resources, false otherwise.Copyright © 2013. All rights reserved.