spring-framework / org.springframework.jms.remoting / JmsInvokerServiceExporter / setIgnoreInvalidRequests

setIgnoreInvalidRequests

open fun setIgnoreInvalidRequests(ignoreInvalidRequests: Boolean): Unit

Set whether invalidly formatted messages should be discarded. Default is "true".

Switch this flag to "false" to throw an exception back to the listener container. This will typically lead to redelivery of the message, which is usually undesirable - since the message content will be the same (that is, still invalid).