Habari Client for HornetQ - Object Pascal STOMP client ...· 2 Habari Client for HornetQ 2.9 Contents

  • View
    218

  • Download
    0

Embed Size (px)

Text of Habari Client for HornetQ - Object Pascal STOMP client ...· 2 Habari Client for HornetQ 2.9...

  • Getting started with

    Habari Client for HornetQVersion 2.9

    Trademarks

    Habari is a registered trademark of Michael Justin and is protected by the laws of Germany and othercountries. JBoss and the JBoss logo are registered trademarks of Red Hat, Inc. Oracle and Java are regis-tered trademarks of Oracle and/or its affiliates. Oracle and Java are registered trademarks of Oracleand/or its affiliates. All Embarcadero brands and product names are trademarks or registered trademarksof Embarcadero. Microsoft, Windows, Windows NT, and/or other Microsoft products referenced herein areeither registered trademarks or trademarks of Microsoft Corporation in the United States and/or othercountries. Other brands and their products are trademarks of their respective holders.

  • 2 Habari Client for HornetQ 2.9

    Contents

    What's new in version 2.9?...................................................................7

    Broker and library limitations...............................................................8Feature Matrix..................................................................................................8

    Transactional Ack.............................................................................................8Temporary Queues...........................................................................................8Queue Browser................................................................................................8Acknowledgment Modes....................................................................................8Durable Subscriptions.......................................................................................8Broker specific limitations.................................................................................8

    Quick start guide for HornetQ.............................................................10Pre-Installation Requirements.......................................................................10Stomp Configuration.......................................................................................10

    Destinations..................................................................................................11Permissions...................................................................................................11

    Running the Broker........................................................................................11Monitoring HornetQ........................................................................................12Stopping HornetQ...........................................................................................12

    Installation.........................................................................................14Requirements.................................................................................................14

    Development Environment..............................................................................14TCP/IP Communication Library.........................................................................14Log4D logging framework................................................................................14

    Installation steps...........................................................................................14

    Communication Adapters....................................................................15Introduction...................................................................................................15

    Configuration of communication adapters..........................................................15Registration of communication adapter class......................................................15Available communication adapters....................................................................16Limitations of the Synapse communication adapter class.....................................16SSL communication adapter classes..................................................................16

    The Programming Model.....................................................................17

    Tutorials..............................................................................................18Quick Start Tutorial........................................................................................18

    Setting up the project.....................................................................................18Adding code to the project..............................................................................18Run the demo................................................................................................20Check for memory leaks..................................................................................20Tutorial source code.......................................................................................20

    Map Message Tutorial.....................................................................................20Setting up the project.....................................................................................21

  • 3

    Adding code to the project..............................................................................21Run the demo................................................................................................23Map Message Conversion with Apache ActiveMQ.................................................23Tutorial source code.......................................................................................23

    Connections and Sessions...................................................................24Step-by-Step Example....................................................................................24

    Overview......................................................................................................24Add required units..........................................................................................24Creating a new Connection..............................................................................24Connection URL Parameters.............................................................................25Creating a Session.........................................................................................25Using the Session...........................................................................................25Closing a Connection......................................................................................25

    Session types overview..................................................................................26Connection URL parameters...........................................................................27

    Message Receipts...........................................................................................27Subscription Receipts......................................................................................27Disconnect Receipts........................................................................................27TCP Keep-Alive (only supported with Indy)........................................................28Heart-beating Support....................................................................................28

    Transacted Sessions.......................................................................................29Create a transacted session.............................................................................29Send messages..............................................................................................29Committing a transaction................................................................................29Rolling back a transaction................................................................................30Transacted message acknowledgement.............................................................30

    Failover Support.............................................................................................31Failover Transport Options...............................................................................31

    Pooled Connection Factory.............................................................................32

    Destinations........................................................................................34Introduction...................................................................................................34Create a new Destination...............................................................................34

    Queues.........................................................................................................34Topics...........................................................................................................35

    Producer and Consumer......................................................................36Message Producer..........................................................................................36Message Consumer.........................................................................................36

    Synchronous.................................................................................................36Asynchronous................................................................................................37

    Synchronous Receive......................................................................................37Should I use synchronous receive or IMessageListener?......................................37

    Durable Subscriptions.........................................................................38Description.....................................................................................................38

    Creation........................................................................................................38Examples...............................