IngeniouSeven
IngeniouSeven

Reputation: 43

Can a core bridge on Apache ActiveMQ Artemis Server be configured between the same source and destination server

I am trying to understand if a core bridge on Apache ActiveMQ Artemis Server be configured between the same source and destination server. The reason why I'm doing this is because my publishers write messages to Queue A and Queue B but my subscriber only listens to Queue AB. So my intent is to bridge Queues A and B into Queue AB. From Artemis user manual I read :

The function of a bridge is to consume messages from a source queue, and forward them to a target address, typically on a different Apache ActiveMQ Artemis server

and

In summary, bridges are a way to reliably connect two separate Apache ActiveMQ Artemis servers together. With a core bridge both source and target servers must be Apache ActiveMQ Artemis servers.

What isn't clear to me is if the source and the destination Artemis server could be the same or do they need to be different.

Upvotes: 0

Views: 419

Answers (1)

Justin Bertram
Justin Bertram

Reputation: 34973

Technically speaking I don't see why a core bridge can't have the same source and destination broker. However, it's not necessary. You can simply use a divert for your use-case. As the documentation states:

Diverts allow you to transparently divert messages routed to one address to some other address, without making any changes to any client application logic.

Upvotes: 1

Related Questions