I want to use Spring Integration to process MQTT messages.
This is my processing requirements: based on inbound message payload it should be copied to multiple messages with same payload but different headers. More specifically different MQTT topic header since I want to send them to different topics.
Also outbound messages should be sent in order: at first all transformed messages from the 1st inbound message, then all messages from the 2nd inbound messages etc.
What message endpoint(s) should I use to implement this?