status = Status.STATUS_COMMITTING;
if (distributedThreadAccess) {
try {
final Thread t = Thread.currentThread();
final TimeBomb tb = new TimeBomb(100) {
public void explode() {
t.interrupt();
}
};
tb.arm();
Thread distributedThread = new Thread() {
public void run() {
try {
xares.commit(xid, false);
tb.disarm();
} catch (Exception e) {
throw new RuntimeException(e.getMessage());
}
}
};