Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

Unable to define consumer autoAck in yaml #140

Open
kuceram opened this issue Jan 4, 2019 · 0 comments
Open

Unable to define consumer autoAck in yaml #140

kuceram opened this issue Jan 4, 2019 · 0 comments

Comments

@kuceram
Copy link

kuceram commented Jan 4, 2019

It is not possible to define consumer.autoAck in application.yml as it requires enum and yaml can serve only string and numbers.

I would suggest to provide enum full name in config:

rabbitmq:
    ...
    consumers:
        MyConsumer:
            autoAck: com.budjb.rabbitmq.consumer.AutoAck.MANUAL

Then you can parse it here: https://github.com/budjb/grails-rabbitmq-native/blob/grails-3.x/rabbitmq-native/src/main/groovy/com/budjb/rabbitmq/consumer/LegacyConsumerContext.groovy#L276

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant