-
Couldn't load subscription status.
- Fork 38.8k
Description
Stephan Oudmaijer opened SPR-12912 and commented
Sorry for changing this ticket a few times. Took me some time to figure out what I need ;-)
The MessagingMessageListenerAdapter does not allow for a user defined marshaller the the Message payload.
An example:
@JmsListener(destination = "someDestination")
@SendTo("someOtherDestination")
public Message<SomeObjectThatNeedsToBeMarshalledWithJaxb> onMessage(final IncomingMessage message) { ... } The SomeObjectThatNeedsToBeMarshalledWithJaxb needs to be marshalled using a MarshallingMessageConverter. Configuring a MessageConverter on the DefaultJmsListenerContainerFactory is not sufficient. Because the MessagingMessageListenerAdapter internally always uses the MessagingMessageConverterAdapter which uses the SimpleMessageConverter internally.
Affects: 4.1.4
Attachments:
- screenshot-1.png (183.41 kB)
Issue Links:
- @SendTo does not get converter applied when returning Message<T> [SPR-13124] #17715
@SendTodoes not get converter applied when returning Message
Referenced from: commits 72894b2