🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
Spring cloud stream -- jmsTempate
I am trying to read a message using jmsTemplate but not able to cast it, i need to read payload/body and then i have to drop that message using jmsTempate to another queue.
class com.solacesystems.jms.message.SolBytesMessage cannot be cast to class javax.jms.Message
Comments
-
Hey @akg17,
I'm not sure I 100% follow. Are you just using Spring Cloud Stream or are you trying to send/receive messages between some apps using Spring Cloud Stream and others using JMS?Note that the Solace Spring Cloud Stream binder does not use our JMS API so you wouldn't use JMS concepts when using it. If you want to consume a message to access the headers, etc. in Spring Cloud Stream use the Spring Message: org.springframework.messaging.Message.
0 -
https://solace.community/discussion/757/spring-cloud-stream#latest
You can get detail here what i am trying to do and also the spring message class can not be casted
ava.lang.ClassCastException: class com.solacesystems.jms.message.SolBytesMessage cannot be cast to class org.springframework.messaging.Message (com.solacesystems.jms.message.SolBytesMessage and org.springframework.messaging.Message are in unnamed module of loader 'app')
I just want to read only dlq/ error queue message using consumer manually not using listeners.0