You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelReceiveAction.java
+33-4Lines changed: 33 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -227,8 +227,14 @@ public Integer doCall() throws Exception {
227
227
if (name != null) {
228
228
returndoCall(name, autoDump);
229
229
} else {
230
-
returndoCallLocal(autoDump);
230
+
// are there only 1 pid running then use that
231
+
List<Long> pids = findPids("*");
232
+
if (pids.size() == 1) {
233
+
returndoCall(pids.get(0), autoDump);
234
+
}
231
235
}
236
+
// okay fallback and run camel locally to connect to external system
0 commit comments