* information for connection!
*/
public synchronized XAResource getXAResource () throws SQLException
{
ConnectionImple conn = null;
if (hasMoreResources())
{
connectionIndex++;
conn = getStandardConnection();
if (conn == null) conn = getJNDIConnection();
if (conn == null)
{
if (jdbcLogger.loggerI18N.isWarnEnabled())
{
jdbcLogger.loggerI18N.warn(
"com.arjuna.ats.internal.jdbc.recovery.basic.xarec",
new Object[] { "BasicXARecovery.getConnection -" });
}
}
}
return conn.recoveryConnection().getConnection().getXAResource();
}