Version 10.3 of the Habari STOMP Client libraries for Delphi and Free Pascal is now available for ActiveMQ, Artemis, OpenMQ and RabbitMQ. It brings asynchronous receive to the simplified API, fixes a transaction defect that 10.2 also had, makes receiving more robust with all three communication adapters, and compiles on Free Pascal for Linux again. The final release is built from the same code as release candidate 2; thank you to everyone who tested the candidates.
New
- Message listeners on the simplified API:
IMQConsumerhas aMessageListenerproperty, so consumers created withIMQContext.CreateConsumercan receive messages asynchronously (withHABARI_BROKEN_MESSAGELISTENERdefined, Indy connection only). - Line length and failover on the context:
IMQContextsupportsIMaxLineLengthandIFailoverProtocol, so users of the simplified API can set the maximum line length and enablefailover:URLs without falling back to the classic API. - New demos: HabariChatRooms (several chat rooms on one context, each with its own message listener), BankEventLog for RabbitMQ (a bank account event log on a stream, with views that can be paused, resumed and replayed; it also runs without a broker), and XPathSelector for ActiveMQ and Artemis. The tutorials now use the simplified API.
- Getting Started guide: a new layout in five parts, and new chapters on broker differences, asynchronous receive and the optional STOMP 1.2 features that are not implemented; for RabbitMQ a new section on streams, for ActiveMQ and Artemis one on XPath selectors.
Fixed
- Transactions: a transacted session no longer loses its work when the connection is started again. With the simplified API this happened on every
CreateProducerandCreateConsumerof a transacted context, soCommitsilently committed only part of the transaction. Version 10.2 behaved the same, so this fix matters for every application that uses transactions. - Artemis and OpenMQ: an
Acknowledgein a transacted session now sends the transaction header, as on ActiveMQ and RabbitMQ. The two brokers themselves still do not honour it: Artemis applies the acknowledgement at once, and for OpenMQ see the known issues below. On Artemis,IMessageListenernow receives messages. - Receiving: a short receive time-out no longer cuts a frame short when a consumer works off a backlog (“Invalid trailing END_SEP byte”).
Receivewith a time-out no longer returns nil for a heart-beat or waits longer than its time-out. When the broker closes the connection,Receiveraises an exception instead of spinning at full CPU load or returning nil, also with mORMot 2 versions after2.4-stable. These fixes apply to all three communication adapters. - Heart-beats: no more false “Heartbeat too late”, neither on an idle connection nor when the broker declines heart-beats in one direction (OpenMQ).
- Message listeners: creating or closing consumers and sessions while a listener runs is now safe; Synapse and mORMot 2 raise a clear exception instead of an access violation when a listener is set; synchronous
Receivebehaves as without the listener define. - Forwarding a received message no longer sends its old subscription header.
- Free Pascal on Linux: the library compiles again. A minimal client was smoke-tested (send and receive through ActiveMQ) with all three communication adapters; the test suites run on Windows only.
Please note
- Deprecated defines:
HABARI_X_MAXLINELENGTHandHABARI_ENABLE_FAILOVER_PROTOCOLwill be removed in the next release; use theMaxLineLengthandEnableFailoverProtocolproperties instead. Both defines now show a compiler warning that names the replacement.HABARI_BROKEN_MESSAGELISTENERwill be removed in a future release, when the listener code is always compiled in;IMessageListeneritself stays. - Known issues: receipts (including the receipt that every persistent message requests) can lose a message for a consumer on the same connection, so send persistent messages and request receipts on a connection without a message listener; with the listener define, closing a connection can hang in rare cases; OpenMQ cannot receive in a transacted session (a broker limitation); RabbitMQ streams need all stream arguments on every send. Details and workarounds are in the release notes and the guide.
- Demo zip: HabariChat is no longer in the demo zip; HabariChatRooms shows the same chat with
IMessageListener. The HabariChat source is still installed with the other demos.
Tested with ActiveMQ 6.3.2 and 6.4.0, Artemis 2.57.0, OpenMQ 6.9.0, RabbitMQ 4.4.0 and Indy 10.6.3.15.
The full release notes are at https://www.habarisoft.com/release_notes.html#r2026.12 (the entries for 10.3-RC2 and 10.3-RC1 below it list every change in 10.3).
Release week offer: until 11 December 2026, licenses bought together for the same team renew at 50% off with two licenses and 60% off with three or more, as long as at least one of them is a Habari library. Any mix counts: more seats of one library, libraries for different brokers, or Habari together with Daraja or ScroogeXHTML for Object Pascal. The discount applies from the second annual renewal while renewed without interruption. Details are on the price list: https://www.habarisoft.com/pricelist.html#release-offer
How to get it: registered users can download version 10.3 from the usual download area now; the product pages at https://www.habarisoft.com/ link to it, and a free demo is available there too.