hachikozjq commented on issue #653:
URL: 
https://github.com/apache/rocketmq-spring/issues/653#issuecomment-2128665189

   > 
在rocketmq中,可以通过consumer多次调用subscribe,使得一个consumer能够同时订阅多个topic;阅读了一下rocketmq-spring的代码,org.apache.rocketmq.spring.support.DefaultRocketMQListenerContainer,看起来是不支持这种做法的。
   > 
   > In RocketMQ, a consumer can subscribe to multiple topics by calling the 
subscribe method multiple times, allowing a single consumer to simultaneously 
subscribe to multiple topics. After reviewing the code of rocketmq-spring, 
specifically 
org.apache.rocketmq.spring.support.DefaultRocketMQListenerContainer, it appears 
that this approach is not supported.
   
   
最后使用RocketMQPushConsumerLifecycleListener实现,写在了一个消费类里,多次subscribe,gid一个应用一个是公司限制,不允许自己创建。


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to