Spring cloud stream Message Type Conversion Issue
We get the type casting issue when spring cloud stream reply the message to non spring cloud stream service.
com.solacesystems.jcsmp.impl.BytesMessageImpl cannot be cast to com.solacesystems.jcsmp.TextMessage"
Below is the code used in the non spring cloud stream service which is type casting to text message which sent by spring cloud stream service.
Do we need to type cast to BytesMessage and use getData API and convert to String?