Search code examples
websocketactivemq-classicstomp

Bridge between two WebSocket STOMP servers


We have an ActiveMQ server and our own API with WebSocket/STOMP service endpoint.

Is there a way to configure ActiveMQ to connect and subscribe to a topic in our API and then publish the messages in ActiveMQ?

If not, are there any other WebSocket/STOMP bridge components which could be used to achieve the same thing (subscribe to a topic in our API and post messages to a topic in ActiveMQ)?

The motivation of all this is... complicated.


Solution

  • ActiveMQ natively supports Camel routes. You could potentially use Camel's STOMP component to subscribe to your own STOMP endpoint and then send those messages to a local destination.