Skip to Content


Well, kind of.

STOMP stands for Streaming Text Orientated Messaging Protocol.  The protocol itself is described here. The fascinating thing about STOMP is that it is quite in the UNIX tradition of human readable text formats.  It is fairly easy to use it to interface your favourite JMS implementation with your favorite language be it C, C++, Ruby, Perl or even BASH.

Some JMS providers talk natively STOMP.  For all other, the CODEHAUS project has provided StompConnect. I will show you how to interface it with the SAP JMS.

The CLASSPATH variable must include,, and jms.jar which are part of your Netweaver installation. They are to be found under $SERVER_ROOT/j2ee/j2eeclient and $SERVER_ROOT/j2ee/cluster/bin/ext/jms respectively.

The STOMP jars should also be included in the CLASSPATH variable. stompconnect-1.0.jar, commons-logging-1.1.jar come with StompConnect. You can download it here.

At this point you should  know your Netweaver username, the password and the URI where it is listening for connections. Now execute on the console:

org.codehaus.stomp.jms.Main tcp://localhost:9876 jmsfactory/default/ConnectionFactory

We are done. Now telnet to port 9876 on your local mashine and connect using the following sequence (Note that ^@ is the key sequence Control-@):




You should see the response:


Play a bit with it using the protocol desciption on the CODEHAUS web site. It is not point-and-click but it opens a whole new world of possibilities.   Next time I will show you how to interface Ruby-On-Rails with SAP JMS using STOMP :-).

1 Comment
You must be Logged on to comment or reply to a post.
  • Hello Evgeni,

    thanks for your very good explanation regarding STOMP with SAP JMS. As I see from the *.jar files this example is related to SAP Netweaver 7.1 and up. I have also tried to run it in SAP Netweaver 7.0 but without success. I changed the jar files to the corresponding ones in 7.0 but the connect on the socket fails.
    Do you have an idea?