Habari Client for HornetQ is a library for Delphi and Free Pascal which provides access to the HornetQ open source message broker.

About the HornetQ open source message broker

HornetQ logo

HornetQ is an open source project from the JBoss Community to build a multi-protocol, embeddable, very high performance, clustered, asynchronous messaging system.

http://hornetq.org/

The HornetQ open source project is now considered a legacy project

The HornetQ code base was donated to the Apache ActiveMQ community late last year and now resides as a sub project under the ActiveMQ umbrella named 'Artemis'. Since the code donation, the developers have been working tirelessly to get an initial release of Artemis out the door; to allow folks to give it a whirl and to finalise the donation process. With the release of Apache Artemis 1.0.0, that process has come to a close and the code donation has now been completed. http://hornetq.blogspot.de/2015/06/hornetq-apache-donation-and-apache.html
The HornetQ open source project is now considered a legacy project and the code is no longer maintained as the open source project HornetQ. http://activemq.apache.org/apache-activemq-board-report-201504-april.html

Habari Client for Artemis new

For new projects which must be compatible with HornetQ 2.3/2.4, please consider using Habari Client for Artemis.

Demo applications

Download Demo Download »

Version:
2.6
Date:
24 June 2015
Tested with:
HornetQ 2.4.0.Final, HornetQ 2.4.5.Final
Release notes:
Release notes in the "Getting Started" PDF and blog post
Demo applications:
Chat, Performance test, Throughput test

A local installation of a message broker is required for Habari Client for HornetQ demo applications.

License

Habari Client for HornetQ

✓ Instant electronic delivery
✓ Full library source code included
✓ Free redistribution with your product when used in binary compiled applications
✓ Non-exclusive life-time license
✓ Updates included for one year
✓ 60 days money back guarantee

60days.png

Buy a license Buy a license »

Code Example

Code for sending (producing) messages:


// Getting connection from the server and starting it

ConnectionFactory := TBTConnectionFactory.Create;
Connection := ConnectionFactory.CreateConnection;
Connection.Start;

// Messages are sent and received using a Session. We will
// create here a non-transactional session object. If you want
// to use transactions you should set the first parameter to 'true'

Session := Connection.CreateSession(False, amAutoAcknowledge);

// Destination represents here our queue 'ExampleQueue' on the
// server. You don't have to do anything special on the
// server to create it, it will be created automatically (except with Artemis and HornetQ).

Destination := Session.CreateQueue('ExampleQueue');

// MessageProducer is used for sending messages (as opposed
// to MessageConsumer which is used for receiving them)

MessageProducer := Session.CreateProducer(Destination);                
             
// We will send a small text message saying 'Hello!' in Hindi:

TextMessage := Session.CreateTextMessage("नमस्ते!");
   
// Here we are sending the message

Producer.Send(Message);

Connection.Close;
                

Quick Facts / Technical Information

Compilers Habari Client libraries are compatible with the compilers
✓ Delphi 2009+
✓ Free Pascal 2.6
For usage with Delphi 6 to 2007 please contact Habarisoft or check the FAQ.
TCP/IP Libraries The libraries include communication adapter units for the open source libraries
✓ Internet Direct (Indy) 10.6
✓ Ararat Synapse rev. 40
Logging Built-in optional support for the open source logging library Log4D.
100% Delphi No external libraries (DLL), compiles into the executable.
Issue tracking A web based bug tracking system is available (no login required).