spring-amqp icon indicating copy to clipboard operation
spring-amqp copied to clipboard

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

Open spring-operator opened this issue 14 years ago • 0 comments

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:

  • #1605 Provide a MessageBuilder with "fluent API" methods

spring-operator avatar Aug 05 '10 13:08 spring-operator