I want to create a mechanism that can receive messages when different topic names are specified from the sender and receiver, and processing is performed on the Broker to determine that both topics are the same value.

The sender sends a message to the topic name "AAA", and the recipient receives the message by specifying the topic name "BBB"
Send →"AAA"→ Broker ("AAA"="BBB") ←"BBB"← Receive

So, can this be achieved by modifying Apache ActiveMQ as a broker?

By the way, Client uses paho.

Please give me an answer.