-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Description
Some while ago I opened these two issues against the Spring Pulsar project:
- Setting subscription name using
spring.pulsar.consumer.subscription.nameconfiguration property doesn't work spring-pulsar#480 - Setting subscription name using
spring.pulsar.consumer.subscription.typeconfiguration property doesn't work spring-pulsar#488
After setting up another project recently that uses Spring Pulsar for consuming messages, I've again tripped up on the same thing attempting to set Pulsar consumer subscription related settings using Spring Boot provided configuration properties.
Though Spring Pulsar reference manual now contains the following two tips:
The
spring.pulsar.consumer.subscription.nameproperty is ignored and is instead generated when not specified on the annotation.
The
spring.pulsar.consumer.subscription-typeproperty is ignored and is instead taken from the value on the annotation. However, you can set thesubscriptionType = {}on the annotation to instead use the property value as the default.
IMO it would be good to revisit these properties as their purpose is (at least to me) unclear at the moment.
/cc @onobc