// Since prepared but not committed.. they should not get delivered.
assertNoMessagesLeft(connection);
Response response = connection.request( new TransactionInfo(connectionInfo.getConnectionId(), null, TransactionInfo.RECOVER) );
assertNotNull(response);
DataArrayResponse dar = (DataArrayResponse) response;
assertEquals(4, dar.getData().length);
// Commit the prepared transactions.
for( int i=0; i < dar.getData().length ;i ++ ) {
connection.send( createCommitTransaction2Phase(connectionInfo, (TransactionId)dar.getData()[i]) );
}
// We should not get the committed transactions.
for( int i=0; i < 4 ;i ++ ) {
Message m = receiveMessage(connection);