java - How to set the consumer-tag value in spring-amqp -


i trying update consumer-tag more informative randomly generated string. have pattern use includes hostname + identifier + randomized string. works fine in our other services (ie: nodejs ampqlib) because provide mechanism pass in value.

however, our java services, use spring-amqp , looks there no way pass in consumer-tag value. took @ blockingqueueconsumer , hard-coded empty string:

string consumertag = this.channel.basicconsume(queue, this.acknowledgemode.isautoack(), "", false, this.exclusive,             this.consumerargs, this.consumer); 

is there way not empty string (which result in randomly generated one) besides creating our own type of consumer?

thanks!

you correct; it's not configurable; please open improvement jira , we'll take @ adding it. shouldn't take effort.


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -