You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/01/19 03:46:26 UTC

[GitHub] [rocketmq-spring] chwii commented on issue #224: Is it possible to create consumer that subscribe to certain topic on the fly?

chwii commented on issue #224: Is it possible to create consumer that subscribe to certain topic on the fly?
URL: https://github.com/apache/rocketmq-spring/issues/224#issuecomment-575964021
 
 
   @xiangwangcheng
   Of course I read the consumer demo before I open this issue, unfortunately they didn't meet my needs because I have no idea what topic I should subscribe to in coding phase(actually I do but topics can be added dynamically).
   What I want to implement here is to create consumer and register listener(different `onMessage` logic maybe) on method invocation instead of hard-coded classes like the demo.
   With rocketmq-client I can just wrap the creation logic like my snippet and can call `create(args)`  in case of topic addition. Dose this make sense to you?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services