DummyTransactionParticipant[] participants = {
new DummyNonDurableTransactionParticipant(),
new DummyNonDurableTransactionParticipant() {
protected boolean prepareResult() { return true; }
},
new DummyTransactionParticipant() {
public void prepareAndCommit(Transaction txn) {
try {
handle.commit();
fail("Expected IllegalStateException");
} catch (IllegalStateException e) {