public String testXA(ASFailureSpec... specs)
{
System.out.println("CMT testXA called with " + specs.length + " specs");
TestASRecovery xatest = new TestASRecovery();
Transaction tx;
try
{
tx = com.arjuna.ats.jta.TransactionManager.transactionManager().getTransaction();
}
catch (javax.transaction.SystemException e)
{
tx = null;
}
if (tx == null)
{
System.out.println("CMT testXA called without a transaction");
return "Failed";
}
else
{
for (ASFailureSpec spec : specs)
xatest.addResource(spec);
xatest.startTest(tx);
return "Passed";
}
}