Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActiveMQ, STOMP, Java example

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.
like image 621
Ihor M. Avatar asked Nov 17 '25 20:11

Ihor M.


1 Answers

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.

like image 183
Tim Bish Avatar answered Nov 20 '25 22:11

Tim Bish



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!