I am attempting to send messages via a Spring Cloud Stream Source. The application receiving the message to requires the id
header to be present. I am unable to change this requirement, so I need to find a way to ensure that the id
header is mapped to my outgoing message.
I noticed that the id
header was being mapped to a message_id
property. After a bit more digging I realised that it is because the id
header is declared as transient here.
Is there a way to ensure that the id
header persists when the message is sent?