Skip to content

Define a MessageFactory for configuration of common "default" MessageProperties values [AMQP-42] #1609

@spring-operator

Description

@spring-operator

Mark Fisher opened AMQP-42 and commented

This will be used by MessageConverters, RabbitTemplate, etc.

We should follow this fallback logic:

  1. explicit 'messageFactory' property has been set (e.g. on a RabbitTemplate)
  2. lookup by bean name (or possibly a single 'primary' bean even if others)

For #2, RabbitTemplate (and other users) would need to be BeanFactoryAware.

We need to decide what "default" properties make sense (e.g. persistent?)

Internally it might use MessageBuilder (see #1605).


Issue Links:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions