Integrating Web Browsers directly into Enterprise Messaging Middleware
STOMP stands for Simple (or Streaming) Text Orientated Messaging Protocol. On the protocol level ultimately simple text frames are exchanged between a STOMP server and a STOMP client. All details regarding the various versions of the STOMP protocol you will find here: http://stomp.github.io/. Since STOMP is text based it is simple to port it to multiple transport protocols. WebSocket as a protocol supports text frames and since meanwhile WebSockets are available on all recent browsers it is an appropriate protocol to use STOMP directly from the browser.
To allow WebSockets as transport protocol to access the message queues and topics of ActiveMQ in the activemq.xml configuration file you simply add the corresponding transport connector:
<transportConnectors> : <transportConnector name="websocket" uri="ws://0.0.0.0:61614" /> : </transportConnectors>
For more details regarding the ActiveMQ configuration for WebSockets please refer to Apache's detailed documentation page at http://activemq.apache.org/websockets.html.
Copyright © 2013 Innotrade GmbH. All rights reserved.