Closing Transacted Sessions in the Solace JCSMP API
To cleanly terminate a transacted session, the client application should commit the current transaction, and then close the transacted session.
If a client application closes a transacted session without first committing the current transaction, the Solace JCSMP API rolls back that transaction, and it does not automatically reattempt the transaction. To close transacted sessions, use TransactedSession.close()