Class StompConnection

java.lang.Object
org.jgroups.client.StompConnection
All Implemented Interfaces:
Runnable

public class StompConnection extends Object implements Runnable
STOMP client to access the STOMP [1] protocol. Note that the full STOMP protocol is not implemented, e.g. transactions are currently not supported.

The interactive client can be started with -h HOST -p PORT, which are the hostname and port of a JGroups server, running with STOMP in its stack configuration. The interactive client supports automatic failover to a different server if the currently connected-to server crashes, and a simple syntax for sending STOMP messages:

 subscribe DEST // example: subscribe /topics/a
 send DEST message // example: send /topics/a Hello world
 

[1] http://stomp.codehaus.org/Protocol

Author:
Bela Ban
  • Field Details

  • Constructor Details

    • StompConnection

      public StompConnection(String dest)
      Parameters:
      dest - IP address + ':' + port, e.g. "192.168.1.5:8787"
  • Method Details