Creating Transacted Sessions
To create a transacted Session, call Connection.createSession(boolean transacted, int acknowledgeMode)
and pass in true
for the transacted parameter.
Within a transacted Session, a client can create a maximum of one producer flow to publish messages and a maximum of 256 consumer flows to consume messages.