spring-amqp
spring-amqp copied to clipboard
Define a MessageFactory for configuration of common "default" MessageProperties values [AMQP-42]
Mark Fisher opened AMQP-42 and commented
This will be used by MessageConverters, RabbitTemplate, etc.
We should follow this fallback logic:
- explicit 'messageFactory' property has been set (e.g. on a RabbitTemplate)
- 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:
- #1605 Provide a MessageBuilder with "fluent API" methods