Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How RocketMQMessageListener Sets Tag? #103

Closed
syanfox opened this issue Jul 11, 2019 · 6 comments
Closed

How RocketMQMessageListener Sets Tag? #103

syanfox opened this issue Jul 11, 2019 · 6 comments

Comments

@syanfox
Copy link

syanfox commented Jul 11, 2019

No description provided.

@fangjian0423
Copy link
Member

Refer RocketMQMessageListener#selectorExpression.

this attribute can be used for tag or sql subscribe mode, the subscribe mode refer RocketMQMessageListener#selectorType.

@xue2lang
Copy link

@fangjian0423 now the tag not support resolvePlaceholders (eg:selectorExpression=${my.xx.tag} ),the default is * 。 when used,we should implement RocketMQPushConsumerLifecycleListener to set other info。
RocketMQMessageListener define the property (selectorExpression),but it doesn't seem to be working friendly now

@fangjian0423
Copy link
Member

fangjian0423 commented Jul 16, 2019

contributors are welcome to support resolvePlaceholders.

@xue2lang
Copy link

@fangjian0423 i review the source code ;ListenerContainerConfiguration#createRocketMQListenerContainer set instance of RocketMQMessageListener to instance of DefaultRocketMQListenerContainer,then execute the method DefaultRocketMQListenerContainer#initRocketMQPushConsumer 。I cannot find resolvePlaceholders where be used for the property of selectorExpression

@fangjian0423
Copy link
Member

@fangjian0423 i review the source code ;ListenerContainerConfiguration#createRocketMQListenerContainer set instance of RocketMQMessageListener to instance of DefaultRocketMQListenerContainer,then execute the method DefaultRocketMQListenerContainer#initRocketMQPushConsumer 。I cannot find resolvePlaceholders where be used for the property of selectorExpression

It is not supported and welcome to contribute it.

liuliuzo pushed a commit to liuliuzo/rocketmq-spring that referenced this issue Aug 22, 2019
@RocketMQMessageListener(topic =
"${demo.rocketmq.test.consumer.topic}",selectorExpression="${demo.rocketmq.test.consumer.tags}"
,consumerGroup = "${demo.rocketmq.test.consumer.group}")
liuliuzo pushed a commit to liuliuzo/rocketmq-spring that referenced this issue Aug 22, 2019
@liuliuzo
Copy link
Contributor

@fangjian0423 我的这个pull request 有机会被merge吗?

@syanfox syanfox closed this as completed Sep 3, 2019
liuliuzo pushed a commit to liuliuzo/rocketmq-spring that referenced this issue Sep 27, 2019
liuliuzo pushed a commit to liuliuzo/rocketmq-spring that referenced this issue Sep 27, 2019
liuliuzo pushed a commit to liuliuzo/rocketmq-spring that referenced this issue Sep 28, 2019
liuliuzo pushed a commit to liuliuzo/rocketmq-spring that referenced this issue Oct 28, 2019
…estyle

and update test class with actual meaning.
liuliuzo pushed a commit to liuliuzo/rocketmq-spring that referenced this issue Oct 28, 2019
…estyle

and update test class with actual meaning.
duhenglucky added a commit that referenced this issue Oct 31, 2019
[ISSUE #103]Support resolvePlaceholders for selectorExpression
liuliuzo pushed a commit to liuliuzo/rocketmq-spring that referenced this issue Mar 26, 2020
@RocketMQMessageListener(topic =
"${demo.rocketmq.test.consumer.topic}",selectorExpression="${demo.rocketmq.test.consumer.tags}"
,consumerGroup = "${demo.rocketmq.test.consumer.group}")
liuliuzo pushed a commit to liuliuzo/rocketmq-spring that referenced this issue Mar 26, 2020
liuliuzo pushed a commit to liuliuzo/rocketmq-spring that referenced this issue Mar 26, 2020
liuliuzo pushed a commit to liuliuzo/rocketmq-spring that referenced this issue Mar 26, 2020
liuliuzo pushed a commit to liuliuzo/rocketmq-spring that referenced this issue Mar 26, 2020
liuliuzo added a commit to liuliuzo/rocketmq-spring that referenced this issue Mar 26, 2020
…estyle

and update test class with actual meaning.
liuliuzo added a commit to liuliuzo/rocketmq-spring that referenced this issue Mar 26, 2020
…estyle

and update test class with actual meaning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants