Habari Client for ActiveMQ is a library for Delphi and Free Pascal which provides access to Apache ActiveMQ, the popular open source Message Broker.

With this library, developers can build integrated solutions, connecting cross language clients and protocols, using the peer-to-peer or the publish-and-subscribe communication model.

Benefits

Habari Client for ActiveMQ is easy to install and configure, and provides a high-level API and programming model, based on connections, sessions, destinations, message producers, and message consumers. This design hides the internals of STOMP and many broker-specific implementation differences.

STOMP:// communication adapter

The library uses the STOMP standard for asynchronous communication with the message broker. Internet Direct (Indy) or Ararat Synapse is required as the only dependency.


About the Apache ActiveMQ open source message broker

ActiveMQ logo

Apache ActiveMQ™ is the most popular and powerful open source messaging and Integration Patterns server.

Apache ActiveMQ is fast, supports many Cross Language Clients and Protocols, comes with easy to use Enterprise Integration Patterns and many advanced features while fully supporting JMS 1.1 and J2EE 1.4. Apache ActiveMQ is released under the Apache 2.0 License

http://activemq.apache.org/

Demo applications

Download Demo Download »

Version:
4.0
Date:
24 June 2015
Tested with:
ActiveMQ 5.11.1
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 ActiveMQ demo applications.

License

Habari Client for ActiveMQ

✓ 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 day 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).