MQ Adapter : Action before Disconnecting an in-transaction Connection

In MQ adapter, can anyone explain the use of the attribute Action before Disconnecting an in-transaction Connection. By default it should be COMMIT, however just need to understand on what basis should we decide whether it should be COMMIT or ROLLBACK.