concept STOMP in category activemq

appears as: STOMP, STOMP
ActiveMQ in Action

This is an excerpt from Manning's book ActiveMQ in Action.

  • Connectivity— ActiveMQ provides a wide range of connectivity options, including support for protocols such as HTTP/S, IP multicast, SSL, STOMP, TCP, UDP, XMPP, and more. Support for such a wide range of protocols equates to more flexibility. Many existing systems utilize a particular protocol and don’t have the option to change, so a messaging platform that supports many protocols lowers the barrier to adoption. Though connectivity is important, the ability to closely integrate with other containers is also important. Chapter 4 addresses both the transport connectors and the network connectors in ActiveMQ.
  • Listing 9.2. Using ActiveMQ via telnet and STOMP
    $ telnet localhost 61613 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. CONNECT login:system passcode:manager ^@ CONNECTED session:ID:dejan-laptop-36961-1221552914772-4:0 SEND destination:/queue/a hello queue a ^@ SUBSCRIBE destination:/queue/a ^@ MESSAGE message-id:ID:dejan-laptop-36961-1221552914772-4:0:-1:1:1 destination:/queue/a timestamp:1221553047204 expires:0 priority:0 hello queue a UNSUBSCRIBE destination:/queue/a ^@ DISCONNECT ^@ Connection closed by foreign host

    With Perl, we conclude our demonstration of STOMP clients and exchanging messages with ActiveMQ using different scripting languages. But STOMP (especially combined with ActiveMQ) is more capable than simply sending and receiving messages. In the following section, we’ll go through advanced messaging concepts that makes STOMP and ActiveMQ a powerful combination.

    Besides sending and acknowledging messages one by one, STOMP introduces the concept of transactions, which group multiple SEND and ACK commands. Transactions are well known from SQL and JMS, and we’re sure you’re familiar with the with atomicity they introduce, as well as transaction-related operations, such as commit and rollback (abort).

    Listing 9.13. Example of using durable topic subscriber with STOMP