Skip to content

Allow for marshalling the messaging Message<T> payload with an user defined marshaller [SPR-12912] #17511

@spring-projects-issues

Description

@spring-projects-issues

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:

Issue Links:

Referenced from: commits 72894b2

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions