Habarisoft released the 2018.10 version of its Object Pascal STOMP client libraries for application integration with open source message brokers (Apache ActiveMQ, Artemis, OpenMQ and RabbitMQ).

New in this release

  • new simple API, based on interfaces MQContext, MQProducer and MQConsumer (the old API still may be used)

Example:

procedure TNewApiTests.TestSendMessage;
var
  Factory: IConnectionFactory;
  Context: IMQContext;
  Destination: IQueue;
  Producer: IMQProducer;
  Consumer: IMQConsumer;
  TextMessage: ITextMessage;
begin
  Factory := TBTConnectionFactory.Create;

  Context := Factory.CreateContext;
  try
    Destination := Context.CreateQueue('example_queue');

    Producer := Context.CreateProducer;
    Producer.Send(Destination, 'Hello World');

    Consumer := Context.CreateConsumer(Destination);
    TextMessage := Consumer.Receive(2500) as ITextMessage;

    CheckEquals('Hello World', TextMessage.Text);
  finally
    Context.Close;
  end;
end;
  • a new connection URL parameter “message.subscription_check=false” allows to subscribe from multiple destinations with a single consumer, by disabling a client-side check subscription id
  • removed support for asynchronous message receive

Resources

Home page: https://www.habarisoft.com/index.html

Feature matrix: https://www.habarisoft.com/index.html#feature_matrix

FAQ: https://www.habarisoft.com/index.html#faq

Versions

The 2018.08 release includes

 

Upgrade discount

For existing users, upgrade discounts are available.

About Habari Client libraries

Habari Client libraries enable Object Pascal applications to take advantage of message broker / message queue technology – which is distributed, loosely coupled, reliable and asynchronous – to build integrated systems, using peer-to-peer and publish-subscribe communication models.