apache / apache/rocketmq-spring
can subscribe more than one topics in one consumer ?
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 943
- PR merge metrics
- No merged PRs in 30d
Description
for now , one consumer can sub one topic by @RocketMQMessageListener
```
@Service
@RocketMQMessageListener(topic = "${demo.rocketmq.topic}", consumerGroup = "string_consumer", selectorExpression = "${demo.rocketmq.tag}", tlsEnable = "${demo.rocketmq.tlsEnable}")
public class StringConsumer implements RocketMQListener {
@Override
public void onMessage(String message) {
System.out.printf("------- StringConsumer received: %s \n", message);
}
}
```
i tried two consumer class sub one topic, only one topic works and found why :

hope to support more than one topic for consumers
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.