A download which includes two patches for Habari Client for RabbitMQ is now available. The patches are:
- configuration support for extra headers of NACK frames
- fix for failover URLs containing heart-beat parameters
Configuration of extra headers for NACK
The RabbitMQ message broker supports a special STOMP header for the NACK frame, requeue. By default, a NACKed message will be requeued. By setting the requeue header to false, the NACKed message will be discarded/dead lettered by the message broker (for more details see https://www.rabbitmq.com/stomp.html).
The patch version contains a new interface, IFrameOptionsProvider, which contains the SetNackHeaders method.
uses BTMsgInterfaces, ... ... NackHeaders := TStringList.Create; try NackHeaders.Add('requeue=false'); (Msg as IFrameOptionsProvider).SetNackHeaders(NackHeaders); finally NackHeaders.Free; end;
Fix for failover URLs containing heart-beat parameters
A failover URL may contain heart-beat configuration (for example heart-beat=0,60000). A bug in the current version has been fixed which splits the URL in the wrong position.
The patched version correctly splits up the URLs into these two parts:
Registered users may download the patch version at https://www.habarisoft.com/habari_rabbitmq/download/snapshot/