solace_replyto header is failed to retrieve in spring cloud stream

Hi @as63010,

It looks like you are trying to set the scst_targetDestination header directly to the value of the solace_replyTo header. The solace_replyTo header is actually of type Destination and not String so you have two options:

  1. Cast solace_replyTo to a Destination type when reading it and use the getName() method to get the actual String representation of the name OR
  2. If you’re using all Spring Cloud Stream apps you could use a different (custom) header to capture the topic the requestor wants the replier to respond on and just keep it as a String the whole time.

Hope that helps!