Question

Can anyone point me to decent example where Java stomp client is used to connect to ActiveMQ. Also I am interested in following:

  • Is failover supported over stomp?
  • How to create durable subscription?
  • Does stomp support asynchronous messaging? Examples? I think I have to implement MessageListener interface for it, but I wasn't able to find example for this.
Was it helpful?

Solution

If you really want to use STOMP from Java then you could look at StompJMS which maps quite a bit of the JMS API to STOMP. It doesn't support failover but there aren't a lot of stomp client's that do. When using Java you are better off to use the native JMS client from the ActiveMQ broker as it is going to be the most robust and feature complete client library you will find.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top