Skip to content

Is it possible to create consumer that subscribe to certain topic on the fly? #224

@chwii

Description

@chwii

I was able to do so with rocketmq-client like below

public DefaultMQPushConsumer create(Object...args){
// basic setup omitted
    defaultMQPushConsumer.subscribe(certainTopic, "*");
    defaultMQPushConsumer.registerMessageListener(new MessageListenerConcurrently(){
        //custom consumeMessage() logic
    });
}

Is this possible with rocketmq-spring-boot-starter?
Or is it ok if I stick to rocketmq-client in my Spring Boot project

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions