You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "ChaoquanTao (via GitHub)" <gi...@apache.org> on 2023/08/31 05:09:06 UTC

[GitHub] [rocketmq-spring] ChaoquanTao opened a new issue, #584: RocketMQMessageListener annotation can't resolve placeholder of namespace, accessKey and secretKey

ChaoquanTao opened a new issue, #584:
URL: https://github.com/apache/rocketmq-spring/issues/584

   
   **BUG REPORT**
   
   1. Please describe the issue you observed:
   
   - What did you do (The steps to reproduce)?
     I have two rocketmq cluster to consume, for one of them, I use RocketMQMessageListener with auto config yml to define a consumer, and for another, I have to explicitly specify configuration like this:
   ```
   @RocketMQMessageListener(consumerGroup = "msg-center-pub-downstream-consumer", topic = "abc",
           namespace = "${rocketmq.paas.consumer.namespace}",
           accessKey = "${rocketmq.paas.consumer.access-key}",
           secretKey = "${rocketmq.paas.consumer.secret-key}")
   ```
   but I find out the placeholder can not be resolved.
   
   - What did you expect to see?
      the placeholder of  namespace, accessKey, secretKey of RocketMQMessageListener could be resolved correctly.
   - What did you see instead?
     the placeholder can not be resolved
   2. Please tell us about your environment:
      <dependency>
               <groupId>org.apache.rocketmq</groupId>
               <artifactId>rocketmq-spring-boot-starter</artifactId>
               <version>2.2.2</version>
           </dependency>
   3. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):
      I noticed that in `org.apache.rocketmq.spring.support.DefaultRocketMQListenerContainer#initRocketMQPushConsumer` the accessKey param and secretKey param are used directly without resolve.
   


-- 
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-unsubscribe@rocketmq.apache.org.apache.org

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


Re: [I] RocketMQMessageListener annotation can't resolve placeholder of namespace, accessKey and secretKey [rocketmq-spring]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #584:
URL: https://github.com/apache/rocketmq-spring/issues/584#issuecomment-5667064973

   **Issue Evaluation**
   
   Category: `question`
   
   This appears to be a usage question. Please check the project documentation and existing issues for answers. If your question remains unanswered, consider reaching out via the project's mailing list or discussion forum for community support.
   
   ---
   *Automated evaluation by github-manager-bot*


-- 
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-unsubscribe@rocketmq.apache.org

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