Skip to content

Commit

Permalink
camel-jbang - Fix jolokia 2.0.x not discoverable by default (#13646)
Browse files Browse the repository at this point in the history
Fix originally found by @grgrzybek.
  • Loading branch information
tadayosi committed Mar 28, 2024
1 parent 2bcc913 commit 31c5a7f
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -62,7 +62,8 @@ public Integer doCall() throws Exception {
} else {
// find a new free port to use when starting a new connection
long port = AvailablePortFinder.getNextAvailable(8778, 10000);
options = new OptionsAndArgs(null, "--port", Long.toString(port), "start", Long.toString(pid));
options = new OptionsAndArgs(
null, "--port", Long.toString(port), "--discoveryEnabled", "true", "start", Long.toString(pid));
}
VirtualMachineHandlerOperations vmHandler = PlatformUtils.createVMAccess(options);
CommandDispatcher dispatcher = new CommandDispatcher(options);
Expand Down

0 comments on commit 31c5a7f

Please sign in to comment.