asaxena14 commented on code in PR #1710:
URL: https://github.com/apache/activemq/pull/1710#discussion_r2842232194


##########
activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java:
##########
@@ -2624,6 +2624,12 @@ public ConnectionContext getAdminConnectionContext() 
throws Exception {
 
     protected void startManagementContext() throws Exception {
         getManagementContext().setBrokerName(brokerName);
+        // Reuse the broker-level SSL context for JMX by default
+        // This avoids duplicating SSL config in activemq.xml while still 
allowing an
+        // explicit managementContext sslContext to override when one is needed
+        if (getManagementContext().getSslContext() == null && getSslContext() 
!= null) {

Review Comment:
   I agree, the PR #1661 already supports explicit wiring via: <property 
name="sslContext" ref="brokerSslContext"/>. Adding a fallback code, guarded by 
an explicit flag, does not seem necessary and would add complexity without 
clear benefit.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to