Routing messages to other destinations

A common use case for messaging systems is to route messages to other destinations or servers. ActiveMQ Artemis offers the following options:

  • Divert messages from one destination to another on the same server
  • Bridge messages between two JMS Brokers

Although both options can be used for the same purpose, the difference between them is that a Bridge implies a connection between two ActiveMQ Artemis servers, whilst a message Divert operates on the same ActiveMQ Artemis server.

Diverting messages to other destinations

So basically diverting is used for internal routing. With this in mind, diverting can be very helpful if you want to change the body of a message. It can also apply filters to messages and add some transformation ...

Get Mastering JBoss Enterprise Application Platform 7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.