Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@
*/
String tag() default TAG_PLACEHOLDER;

/**
* Enable or disable the use of Secure Sockets Layer (SSL) for network transport.
*/
boolean sslEnabled() default true;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Warning] sslEnabled defaults to true. This may be a breaking change for existing users who do not have SSL configured — their listeners would suddenly fail to connect after upgrading.

Consider defaulting to false to preserve backward compatibility:

boolean sslEnabled() default false;

Users who need SSL can explicitly opt in via @RocketMQMessageListener(sslEnabled = true).


/**
* The type of filter expression
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ private DefaultListenerContainer createRocketMQListenerContainer(String name, Ob
container.setConsumptionThreadCount(annotation.consumptionThreadCount());
container.setMaxCacheMessageSizeInBytes(annotation.maxCacheMessageSizeInBytes());
container.setType(annotation.filterExpressionType());
container.setSslEnabled(annotation.sslEnabled());
return container;
}

Expand Down
Loading