int javax.transaction.xa.XAResource.getTransactionTimeout();
En cas d'échec, l'exception javax.transaction.xa.XAException.
import javax.transaction.xa.*;
private XAResource pXAResource;
private int Delai;
...
try
{
Delai=pXAResource.getTransactionTimeout();
...
}
catch (XAException e)
{
...
}
...
try
{
pXAResource.setTransactionTimeout(Delai);
...
}
catch (XAException e)
{
...
}
...