@@ -120,14 +120,14 @@ transactions are active is underspecified in both versions 0-8 and 0-9
120
120
of the AMQP specification, and different server implementations behave
121
121
in different ways.
122
122
123
- Finally , the fact that a message was flagged "mandatory", and
123
+ Additionally , the fact that a message was flagged "mandatory", and
124
124
successfully enqueued on one or more queues, is no guarantee of its
125
125
eventual receipt: most trivially, the queue could be deleted before
126
126
the message is processed, but other situations, like the use of the
127
127
[code noAck] flag by a message consumer, can also make the guarantees
128
128
provided by "mandatory" and "immediate" conditional.
129
129
130
- Alternatively, one could use Publisher Confirms. Setting an channel
130
+ Alternatively, one could use Publisher Confirms. Setting a channel
131
131
into [i confirm mode] by calling [code IModel.ConfirmSelect] causes
132
132
the broker to send a [code Basic.Ack] after each message is processed
133
133
by delivering to a ready consumer or by persisting to disk.
@@ -516,7 +516,7 @@ Publisher Confirms
516
516
517
517
- ensure (ahead of time) that the target queue is durable,
518
518
519
- - select Confirm mode using [code IModel.ConfirmSelect],
519
+ - select [code Confirm] mode using [code IModel.ConfirmSelect],
520
520
521
521
- publish the message with "mandatory" flag set and [code
522
522
DeliveryMode] set equal to 2,
@@ -538,6 +538,10 @@ both [code Basic.Return'ed] and [code Basic.Ack'ed]. So, if the
538
538
"mandatory" or "immediate" are used, the client must also listen for
539
539
returns by setting the [code IModel.BasicReturn] handler.
540
540
541
+ Also note that the [code Tx] and [code Confirm] modes are mutually
542
+ exclusive on any one channel, so it is not possible to mix the two
543
+ methods described above.
544
+
541
545
Responsibility can also be placed with an external database, even
542
546
further along the chain - see the section on interaction with external
543
547
resources below.
0 commit comments