RockteMQ-AI commented on issue #767: URL: https://github.com/apache/rocketmq-spring/issues/767#issuecomment-5293101159
**Issue Evaluation** Category: `question` | Status: **Evaluated** Thank you for raising this. Currently, the `@RocketMQMessageListener` annotation does not expose a direct SSL/TLS toggle parameter. SSL configuration in rocketmq-spring is typically handled at the **client level** rather than per-listener: 1. **Producer SSL** — Set `rocketmq.producer.sslEnabled=true` (or configure via `RocketMQProperties`) in your `application.properties`. 2. **Consumer SSL** — SSL for consumers is configured through the underlying `DefaultMQPushConsumer` settings. You can set `tlsEnable=true` via system properties (`-Drocketmq.consumer.tlsEnable=true`) or programmatically by customizing the consumer bean. If you need **per-listener SSL granularity**, that would require an enhancement to the annotation definition and the `ListenerContainerConfiguration` to propagate SSL settings to each consumer instance. **Suggested next steps:** - If this is a configuration question, the above should resolve it. - If you need per-listener SSL as a feature, this would be an `enhancement` — consider filing a separate feature request with your use case (e.g., mixed SSL/non-SSL listeners in the same application). --- *Automated evaluation by RockteMQ-AI* -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
