Yes, this is what I've ended up with (Broker Plugin). Unfortunately it does
not work reliably for sendToDeadLetterQueue() (-> some messages are moved
to DLQ but sendToDeadLetterQueue is not called). So I used send() instead
-> this works.
Two notes:
1) I am not 100% happy to hook into send()
Are you able to reliably reproduce the behavior where a message is sent to
the DLQ but sendToDeadLetterQueue() is not called? If you are, can you
share that setup? With the help of a debugger or a profiler we might be
able to figure out why it's inconsistent, and how we could tie in to
something