Skip to content

Commit

Permalink
ARTEMIS-5201 when non embedded use exit(1) on exception for artemis c…
Browse files Browse the repository at this point in the history
…li main like artemis boot
  • Loading branch information
gtully committed Dec 6, 2024
1 parent 00efad3 commit f5519f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ public static void main(String... args) throws Exception {

verifyManagementDTO(fileBrokerETC);

execute(true, true, true, fileHome, fileInstance, fileBrokerETC, args);
Object result = execute(true, true, true, fileHome, fileInstance, fileBrokerETC, args);
if (!Run.getEmbedded() && result instanceof Exception) {
System.exit(1);
}
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public static void setEmbedded(boolean embedded) {
Run.embedded = true;
}

public static boolean getEmbedded() {
return Run.embedded;
}

private Broker server;

@Override
Expand Down

0 comments on commit f5519f1

Please sign in to comment.