spring-framework / org.springframework.jms.remoting / JmsInvokerClientInterceptor / setMessageConverter

setMessageConverter

open fun setMessageConverter(@Nullable messageConverter: MessageConverter): Unit

Specify the MessageConverter to use for turning org.springframework.remoting.support.RemoteInvocation objects into request messages, as well as response messages into org.springframework.remoting.support.RemoteInvocationResult objects.

Default is a SimpleMessageConverter, using a standard JMS javax.jms.ObjectMessage for each invocation / invocation result object.

Custom implementations may generally adapt java.io.Serializable objects into special kinds of messages, or might be specifically tailored for translating RemoteInvocation(Result)s into specific kinds of messages.