Command Mode Applications

camel-quarkus-core brings the option to write Quarkus Command Mode Applications with control about when the Camel runtime should start:

import io.quarkus.runtime.Quarkus;
import io.quarkus.runtime.annotations.QuarkusMain;
import org.apache.camel.quarkus.main.CamelMainApplication;

public class Main {
    public static void main(String... args) {
        // your logic here
        //, args); (1)
1 Start Quarkus and the Camel Quarkus runtime

It is recommended to perform very little logic in the Java Main.

Find more details about Camel Quarkus command line applications in this blog post.