smallrye-reactive-messaging icon indicating copy to clipboard operation
smallrye-reactive-messaging copied to clipboard

AMQP connector - default AmqpClientOptions configured by cdi

Open famarting opened this issue 5 years ago • 0 comments

Related to the work done here #352 there is an optional missing detail that could improve a bit more the usability in regards to ease of configuration of the amqp connector.

The initial work done allows to configure via CDI a channel, providing the name of an AmqpClientOptions named bean, so to configure the amqp connection via CDI the user must set the property client-options-name in every channel configuration.

This issue is intended to discuss how to define a default AmqpClientOptions via cdi that applies by default to all amqp channels, in case we are interested in doing that. I have 3 ideas to do so:

  • have a config property amqp-client-options-name at global level, similar to amqp-host, that points to the name of an AmqpClientOptions named bean
  • look for an AmqpClientOptions named bean named "default" or whatever other name we come up with
  • create an special qualifier annotation like @DefaultAmqpConfiguration to indicate that

famarting avatar Dec 14 '19 18:12 famarting