Commit 5f9c3e60 by Dave Syer

Ensure management.port=-1 switches off actuator endpoints in turbine

parent 3714cee5
...@@ -32,7 +32,7 @@ public class TurbinePortApplicationListener implements ...@@ -32,7 +32,7 @@ public class TurbinePortApplicationListener implements
ports.put("turbine.amqp.port", serverPort); ports.put("turbine.amqp.port", serverPort);
} }
} }
else if (managementPort != null && serverPort == null) { else if (managementPort != null && managementPort != -1 && serverPort == null) {
// User wants 2 ports, but hasn't specified server.port explicitly // User wants 2 ports, but hasn't specified server.port explicitly
ports.put("server.port", managementPort); ports.put("server.port", managementPort);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment