spring cloud stream, queue provisioning

akg17
akg17 Member Posts: 76
edited July 2021 in General Discussions #1

@marc

HI Mark

I am setting so many properties repeatedly can you please help me how can i set most of them default
testQueue:
producer:
provisionDurableQueue: false
queueNamePrefix: null
useFamiliarityInQueueName: false
useDestinationEncodingInQueueName: false
autoBindErrorQueue: true
consumer:
provisionErrorQueue: false
provisionDurableQueue: false
autoBindErrorQueue: true
durableSubscription: true
useFamiliarityInQueueName: false
useDestinationEncodingInQueueName: false
useGroupNameInQueueName: false
useGroupNameInErrorQueueName: false
queueNamePrefix: null
errorQueueNameOverride: testQueue.dlq

Comments

  • marc
    marc Member, Administrator, Moderator, Employee Posts: 959 admin

    Hi @akg17,

    Looking at the framework's docs here it looks like you can set a default for the binder with this format: spring.cloud.stream.<binder-type>.default.<producer|consumer>.<property>=<value>

    So if your binder name is solace try this: spring.cloud.stream.solace.default.<producer|consumer>.<property>=<value> and appreciate it if you'd let me know if it works. I believe I tried that like 6 months ago but don't have a chance to try it right now :)

    Hope that helps!