Sample code for request/reply design by using Spring Cloud Stream

Hi @MartinL,

Just to clarify are you trying to have a REST app make a request to the broker and then have a Spring Cloud Stream app handle that request, process it and reply?

If yes, then you’ll want to verify a few things:

  1. Make sure your VPN is in Microgateway mode (this way your REST app will wait for a response)
  2. Make sure your Spring Cloud Stream app is replying to the topic specified in the “solace_replyTo” header AND that it is setting the “solace_correlationId” to match the one incoming on the request. Both of those items would be required for the microgateway to properly pass the response back to the requestor.

Hope that helps!