Hello together,
we are currently starting with Solace development and want to build different use cases. First we created a topic hierarchy, where for example a source systems stores different data parts in the topic string like:
${sourceSystem}/${stage}/${businessObject}/${objectId}
Now we want to extract different parts of this hierarchy on a message basis to build some business logic on top of it.
I saw an unsolved Github issue for the Spring Cloud Framework to store this destination string in the Message header.
In the core Java API you are getting the destination as a string and have to cut it manually in pieces.
public void onReceive(BytesXMLMessage message) {
String[] levels = message.getDestination().getName().split("/");
What is your suggested way to deal with this problem ?
Furthermore, is this not a common use case for the topic hierarchy ?
For example based on the ${sourceSystem}
i want to route my messages to a different topic endpoint .
Thank you