### Install Apache Camel Examples Root Project with Maven Source: https://github.com/apache/camel-examples/blob/main/README.adoc After checking out the desired release tag, execute this Maven command from the root directory of the Apache Camel examples. This will build the project, download all necessary dependencies from central repositories, and install them into your local Maven repository, preparing the examples for execution. ```Bash $ mvn install ``` -------------------------------- ### Run Camel Example Project Source: https://github.com/apache/camel-examples/blob/main/routetemplate/README.adoc This command executes the Apache Camel example project using the Camel Maven plugin, starting the application. ```Shell mvn camel:run ``` -------------------------------- ### Run Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/main-tiny/README.adoc This command executes the Apache Camel example project using the `camel:run` Maven goal, starting the Camel application. ```sh $ mvn camel:run ``` -------------------------------- ### Run Camel csimple Example Source: https://github.com/apache/camel-examples/blob/main/csimple/README.adoc Executes the compiled Apache Camel csimple example project. This command uses the Maven Camel plugin to start the application. ```sh $ mvn camel:run ``` -------------------------------- ### Run Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/main-lambda/README.adoc This shell command executes the Camel example application using the `camel:run` Maven goal. This will start the Camel context and the defined routes. ```sh $ mvn camel:run ``` -------------------------------- ### Run Camel XML Example Source: https://github.com/apache/camel-examples/blob/main/main-xml/README.adoc Executes the Camel application using the `camel:run` Maven goal, starting the standalone XML routes. ```sh $ mvn camel:run ``` -------------------------------- ### Run Demo with Docker Compose Source: https://github.com/apache/camel-examples/blob/main/resume-api/resume-api-cassandraql/README.md Command to start the demo containers, stream logs, and then stop them. ```shell docker compose up -d && docker compose logs --no-log-prefix -f example ; docker compose down ``` -------------------------------- ### Run Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/main-endpointdsl/README.adoc This command executes the Camel example application using the Maven Camel plugin. It starts the Camel routes defined in the project. ```sh $ mvn camel:run ``` -------------------------------- ### Run Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/couchbase-log/README.adoc This command executes the Camel example using the Maven Camel plugin. It starts the Camel application defined in the project. ```sh $ mvn camel:run ``` -------------------------------- ### Run Apache Camel Cafe Example Source: https://github.com/apache/camel-examples/blob/main/cafe/README.adoc This command executes the Apache Camel Cafe example application. It starts the Camel routes defined in the project, allowing you to observe the splitter and aggregator patterns in action. ```sh $ mvn camel:run ``` -------------------------------- ### Run Kafka Consumer Example Source: https://github.com/apache/camel-examples/blob/main/kafka/README.adoc Command to start the Kafka consumer part of the example in a separate shell using Maven's exec plugin with the 'kafka-consumer' profile. This should be run before the producer. ```sh $ mvn exec:java -Pkafka-consumer ``` -------------------------------- ### Run Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/routeloader/README.adoc This command executes the Apache Camel example project. It uses the `camel:run` Maven goal to start the Camel application and dynamically load the defined routes. ```bash mvn camel:run ``` -------------------------------- ### Run PostgreSQL Docker container for Debezium example Source: https://github.com/apache/camel-examples/blob/main/debezium/README.adoc Starts a PostgreSQL server using a Debezium example Docker image, exposing it on port 5432. This server is pre-configured for Debezium and contains sample data. ```sh docker run -it --rm --name pgsql -p 5432:5432 -e POSTGRES_DB=debezium-db -e POSTGRES_USER=pgsql-user -e POSTGRES_PASSWORD=pgsql-pw debezium/example-postgres:1.9 ``` -------------------------------- ### Run Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/google/google-pubsub/README.adoc This command executes the Camel application using the Maven Camel plugin, starting the defined routes and processes. ```sh $ mvn camel:run ``` -------------------------------- ### Example Log Output from Running Camel Cassandraql Application Source: https://github.com/apache/camel-examples/blob/main/cassandra-kubernetes/README.adoc Provides an illustrative example of the log output generated by the Apache Camel application. It shows various INFO messages related to Guava compatibility, clock usage, Netty, Cassandra driver initialization, and the successful startup of the Camel route. ```sh [INFO] k8s: 2020-08-07 12:34:32,569 [main ] INFO GuavaCompatibility - Detected Guava >= 19 in the classpath, using modern compatibility layer [INFO] k8s: 2020-08-07 12:34:32,834 [main ] INFO ClockFactory - Using native clock to generate timestamps. [INFO] k8s: 2020-08-07 12:34:33,005 [main ] INFO NettyUtil - Did not find Netty's native epoll transport in the classpath, defaulting to NIO. [INFO] k8s: 2020-08-07 12:34:34,122 [main ] INFO DCAwareRoundRobinPolicy - Using data-center name 'DC1-K8Demo' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) [INFO] k8s: 2020-08-07 12:34:34,124 [main ] INFO Cluster - New Cassandra host cassandra/172.17.0.7:9042 added [INFO] k8s: 2020-08-07 12:34:34,150 [main ] INFO Cluster - New Cassandra host cassandra/172.17.0.6:9042 added [INFO] k8s: 2020-08-07 12:34:36,780 [main ] INFO CqlPopulateBean - Cassandra was populated with sample values for test.users table [INFO] k8s: 2020-08-07 12:34:37,372 [main ] INFO LRUCacheFactory - Detected and using LRUCacheFactory: camel-caffeine-lrucache [INFO] k8s: 2020-08-07 12:34:38,012 [main ] INFO AbstractCamelContext - Apache Camel 3.8.0-SNAPSHOT (camel-1) is starting [INFO] k8s: 2020-08-07 12:34:38,019 [main ] INFO AbstractCamelContext - StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html [INFO] k8s: 2020-08-07 12:34:38,019 [main ] INFO AbstractCamelContext - Using HealthCheck: camel-health [INFO] k8s: 2020-08-07 12:34:38,664 [main ] INFO DefaultMavenCoordinates - DataStax Java driver for Apache Cassandra(R) (com.datastax.oss:java-driver-core) version 4.13.0-SNAPSHOT [INFO] k8s: 2020-08-07 12:34:39,554 [s0-admin-0 ] INFO Clock - Using native clock for microsecond precision [INFO] k8s: 2020-08-07 12:34:41,453 [main ] INFO InternalRouteStartupManager - Route: cassandra-route started and consuming from: timer://foo [INFO] k8s: 2020-08-07 12:34:41,454 [main ] INFO AbstractCamelContext - Total 1 routes, of which 1 are started ``` -------------------------------- ### Run Apache Camel Spring Example Source: https://github.com/apache/camel-examples/blob/main/spring/README.adoc Executes the Apache Camel Spring example project using the Maven Camel plugin. This command starts the application and its configured routes. ```Shell $ mvn camel:run ``` -------------------------------- ### Build Camel Example Project Source: https://github.com/apache/camel-examples/blob/main/routetemplate-xml/README.adoc Instructions to compile the Camel example project using Maven. ```Shell $ mvn compile ``` -------------------------------- ### Run Apache Camel JMX Example Source: https://github.com/apache/camel-examples/blob/main/jmx/README.adoc This command executes the Apache Camel JMX example using the `camel:run` Maven goal. It starts the Camel application, allowing you to observe its JMX integration and routing rules. ```sh $ mvn camel:run ``` -------------------------------- ### Run Camel csimple Example Source: https://github.com/apache/camel-examples/blob/main/csimple-joor/README.adoc Executes the compiled Camel csimple example using the Maven Camel plugin. This command starts the Camel application. ```sh $ mvn camel:run ``` -------------------------------- ### Build Camel Example Project Source: https://github.com/apache/camel-examples/blob/main/routes-configuration/README.adoc Command to compile the Apache Camel example project using Maven. ```shell $ mvn compile ``` -------------------------------- ### Start Camel Netty Server with Maven Source: https://github.com/apache/camel-examples/blob/main/netty-custom-correlation/README.adoc Starts the server component of the Camel Netty custom correlation example. This should be run in a separate JVM. ```sh $ mvn exec:java -P server ``` -------------------------------- ### Run Apache Camel Example Source: https://github.com/apache/camel-examples/blob/main/vault/google-secret-manager-reloading/README.adoc Runs the Apache Camel example application using the Maven Camel plugin, starting the Camel context. ```sh $ mvn camel:run ``` -------------------------------- ### Run MySQL Debezium Example Docker Image Source: https://github.com/apache/camel-examples/blob/main/debezium-eventhubs-blob/README.adoc Starts a MySQL server using a Debezium example Docker image, configured with row-level binary logs and sample data. The server is exposed on port 3306 with a root password. ```sh $ docker run -it --rm --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=debezium -e MYSQL_USER=mysqluser -e MYSQL_PASSWORD=mysqlpw debezium/example-mysql:0.9 ``` -------------------------------- ### Run Kafka Producer Example Source: https://github.com/apache/camel-examples/blob/main/kafka/README.adoc Command to start the Kafka producer part of the example in a separate shell using Maven's exec plugin with the 'kafka-producer' profile. It initially sends programmatic messages and then allows user input from the command prompt. ```sh $ mvn exec:java -Pkafka-producer ``` -------------------------------- ### Build Demo Containers Source: https://github.com/apache/camel-examples/blob/main/resume-api/resume-api-fileset-wal/README.md Builds the project and Docker containers required for the Resume API example using Maven and Docker Compose. ```shell mvn clean package && docker compose build ``` -------------------------------- ### Run Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/main/README.adoc Instructions to run the compiled Camel example project using Maven's `camel:run` goal. ```sh $ mvn camel:run ``` -------------------------------- ### Build Demo and Containers Source: https://github.com/apache/camel-examples/blob/main/resume-api/resume-api-cassandraql/README.md Command to compile the project and build the Docker containers for the demo. ```shell mvn clean package && docker compose build ``` -------------------------------- ### Build Camel Splunk Example Source: https://github.com/apache/camel-examples/blob/main/splunk/README.adoc Compiles the Camel Splunk example project using Maven. This step is necessary before running any of the client examples. ```Shell mvn compile ``` -------------------------------- ### Run Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/azure/azure-eventhubs/README.adoc Command to execute the Camel example using the Maven Camel plugin. This will start the Camel application and poll the Azure Event Hub. ```sh $ mvn camel:run ``` -------------------------------- ### Start Camel Netty Client with Maven Source: https://github.com/apache/camel-examples/blob/main/netty-custom-correlation/README.adoc Starts the client component of the Camel Netty custom correlation example. This should be run in a separate JVM, and its output will show request/response pairs. ```sh $ mvn exec:java -P client ``` -------------------------------- ### Run Apache Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/kamelet/README.adoc This command executes the Apache Camel example project using the `camel:run` goal provided by the Camel Maven plugin. It starts the Camel application, allowing the defined routes and Kamelets to be processed. ```sh $ mvn camel:run ``` -------------------------------- ### Build Camel Example Project Source: https://github.com/apache/camel-examples/blob/main/routetemplate/README.adoc This command compiles the Apache Camel example project using Maven, preparing it for execution. ```Shell mvn compile ``` -------------------------------- ### Build Apache Camel Example Source: https://github.com/apache/camel-examples/blob/main/azure/azure-storage-blob/README.adoc Compiles the Apache Camel example using Maven. ```sh $ mvn compile ``` -------------------------------- ### Run Apache Camel Spring XQuery Example Source: https://github.com/apache/camel-examples/blob/main/spring-xquery/README.adoc Executes the Apache Camel Spring XQuery example using the Maven Camel plugin. This command starts the Camel application, allowing it to begin processing messages as configured. ```shell mvn camel:run ``` -------------------------------- ### Run Camel Example Project Source: https://github.com/apache/camel-examples/blob/main/routetemplate-xml/README.adoc Instructions to execute the Camel example project using Maven's Camel plugin. ```Shell $ mvn camel:run ``` -------------------------------- ### Start Kafka ZooKeeper and Broker Servers Source: https://github.com/apache/camel-examples/blob/main/kafka/README.adoc Commands to start the ZooKeeper server and Kafka broker, essential for Kafka operations. Instructions are provided for both Windows and Linux environments, assuming the KAFKA environment variable is set to the Kafka distribution home directory. ```sh $ %KAFKA%\bin\windows\zookeeper-server-start.bat ${KAFKA}/config/zookeeper.properties $ %KAFKA%\bin\windows\kafka-server-start.bat ${KAFKA}/config/server.properties ``` ```sh $ ${KAFKA}/bin/zookeeper-server-start.sh ${KAFKA}/config/zookeeper.properties $ ${KAFKA}/bin/kafka-server-start.sh ${KAFKA}/config/server.properties ``` -------------------------------- ### Start Demo Containers and Enter Application Shell Source: https://github.com/apache/camel-examples/blob/main/resume-api/resume-api-fileset-wal/README.md Starts the demo containers in detached mode and then enters an interactive shell within the main application container. This shell should be kept open for subsequent steps. ```shell docker compose up -d && docker exec -it resume-api-fileset-wal-example-1 /bin/bash ; docker compose down ``` -------------------------------- ### Compile Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/main/README.adoc Instructions to compile the Camel example project using Maven's `compile` goal. ```sh $ mvn compile ``` -------------------------------- ### Run Apache Camel Azure Key Vault Example Source: https://github.com/apache/camel-examples/blob/main/vault/azure-key-vault-reloading/README.adoc This command runs the Apache Camel Azure Key Vault example using Maven, starting the Camel context and demonstrating initial secret retrieval. ```sh $ mvn camel:run ``` -------------------------------- ### Run Camel Example Source: https://github.com/apache/camel-examples/blob/main/aws/main-endpointdsl-aws2/aws2-s3-events-inject/README.adoc Executes the Camel example application using the Maven Camel plugin. This will start the Camel routes and perform the S3 operations. ```sh $ mvn camel:run ``` -------------------------------- ### Run Camel Example Project Source: https://github.com/apache/camel-examples/blob/main/routes-configuration/README.adoc Command to execute the Apache Camel example project using Maven's Camel plugin. ```shell $ mvn camel:run ``` -------------------------------- ### Build Demo Containers Source: https://github.com/apache/camel-examples/blob/main/resume-api/resume-api-fileset/README.md Builds the Apache Camel Resume API example and its associated Docker containers using Maven and Docker Compose. ```shell mvn clean package && docker compose build ``` -------------------------------- ### Load Data into Cassandra Source: https://github.com/apache/camel-examples/blob/main/resume-api/resume-api-cassandraql/README.md Command to execute the Java application to load 500 records into Cassandra. Requires the JAR file to be present at "/deployments/example.jar". ```shell java -Dcassandra.host=cassandra-host.com \ -Dcassandra.cql3.port=9042 \ -Dresume.action=load \ -jar /deployments/example.jar ``` -------------------------------- ### Run MinIO Server with Docker Source: https://github.com/apache/camel-examples/blob/main/minio/README.adoc This command starts a local MinIO server instance as a Docker container. It maps ports 9000 (MinIO API) and 9090 (console) and sets the root user credentials for access. This is a prerequisite for running the Camel MinIO example. ```sh docker run \ -p 9000:9000 \ -p 9090:9090 \ -e "MINIO_ROOT_USER=xxxx" \ -e "MINIO_ROOT_PASSWORD=yyyyyyyy" \ quay.io/minio/minio server /data \ --console-address ":9090" ``` -------------------------------- ### Run Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/flight-recorder/README.adoc This command executes the Camel application using the Maven `camel:run` goal. It starts the Camel application and initiates a Java Flight Recorder recording, saving it to the current directory. ```sh $ mvn camel:run ``` -------------------------------- ### Run Apache Camel JDBC Example Source: https://github.com/apache/camel-examples/blob/main/jdbc/README.adoc Executes the Apache Camel JDBC example project using Maven's camel:run goal. The application will start and process data according to its configured routes. To stop the running example, press Ctrl+C. ```sh $ mvn camel:run ``` -------------------------------- ### Compile Camel Micrometer Example Source: https://github.com/apache/camel-examples/blob/main/main-micrometer/README.adoc Compiles the Apache Camel example project using Maven. ```sh $ mvn compile ``` -------------------------------- ### Create Required Kafka Topics Source: https://github.com/apache/camel-examples/blob/main/kafka/README.adoc Commands to create the necessary Kafka topics ('TestLog' and 'AccessLog') before running the examples. The commands specify the bootstrap server, replication factor, and partitions for each topic, tailored for both Windows and Linux. ```sh $ %KAFKA%\bin\windows\kafka-topics.bat --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 2 --topic TestLog $ %KAFKA%\bin\windows\kafka-topics.bat --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic AccessLog ``` ```sh $ ${KAFKA}/bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 2 --topic TestLog $ ${KAFKA}/bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic AccessLog ``` -------------------------------- ### Run Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/aws/main-endpointdsl-aws2/aws2-sqs-consumer/README.adoc This command executes the Camel example application using the Maven Camel plugin. It starts the Camel routes defined in the project, allowing the application to consume messages from the SQS queue. ```sh $mvn camel:run ``` -------------------------------- ### Compile Camel XML Example Source: https://github.com/apache/camel-examples/blob/main/main-xml/README.adoc Compiles the Camel example project using the Maven `compile` goal, preparing it for execution. ```sh $ mvn compile ``` -------------------------------- ### Run Apache Camel WhatsApp API Example Source: https://github.com/apache/camel-examples/blob/main/whatsapp/README.adoc Instructions to compile and run the Apache Camel WhatsApp API example using Maven. ```Shell $ mvn compile exec:java ``` -------------------------------- ### Run Camel XML Example with Debug Profile Source: https://github.com/apache/camel-examples/blob/main/main-xml/README.adoc Launches the Camel example with the `camel.debug` Maven profile activated, enabling support for Camel Textual Route debugging in IDEs. ```sh $ mvn camel:run -Pcamel.debug ``` -------------------------------- ### Run Apache Camel Resume API Demo with Docker Compose Source: https://github.com/apache/camel-examples/blob/main/resume-api/resume-api-file-offset/README.md This command starts the Apache Camel Resume API example demo using Docker Compose, streams its logs, and then tears down the containers upon completion. It ensures the demo runs in detached mode initially, then displays real-time logs, and finally cleans up the environment. ```shell docker compose up -d && docker compose logs --no-log-prefix -f example ; docker compose down ``` -------------------------------- ### Compile Camel Cafe Example Source: https://github.com/apache/camel-examples/blob/main/cafe-endpointdsl/README.adoc Compiles the Camel Cafe example project using Maven. ```sh $ mvn compile ``` -------------------------------- ### Build Camel MongoDB Example Project Source: https://github.com/apache/camel-examples/blob/main/mongodb/README.adoc Command to compile the Camel MongoDB example application using Maven. ```sh $ mvn compile ``` -------------------------------- ### Build Apache Camel Console Example Source: https://github.com/apache/camel-examples/blob/main/console/README.adoc Compiles the Apache Camel Console example using Maven. ```sh $ mvn compile ``` -------------------------------- ### Run and Monitor Demo Source: https://github.com/apache/camel-examples/blob/main/resume-api/resume-api-fileset/README.md Starts the Apache Camel Resume API example in detached mode, streams its logs, and then stops the containers upon completion or interruption. ```shell docker compose up -d && docker compose logs --no-log-prefix -f example ; docker compose down ``` -------------------------------- ### Build Camel Kamelet Main Project Source: https://github.com/apache/camel-examples/blob/main/kamelet-main/README.adoc Compiles the Camel Kamelet Main example project using Maven. ```sh mvn compile ``` -------------------------------- ### Run Camel AWS Secrets Manager Example Source: https://github.com/apache/camel-examples/blob/main/vault/aws-secrets-manager/README.adoc Execute the Apache Camel example using Maven's `camel:run` goal to start the application and observe its output, demonstrating the integration with AWS Secrets Manager. ```sh $ mvn camel:run ``` -------------------------------- ### Run Camel Debezium Kinesis producer Source: https://github.com/apache/camel-examples/blob/main/debezium/README.adoc Starts the Kinesis producer component of the Camel Debezium example. This component is responsible for sending events from Debezium to Kinesis. ```sh mvn exec:java -Pkinesis-producer ``` -------------------------------- ### Compile Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/main-yaml/README.adoc Compiles the Camel example project. This step prepares the application for execution by building all necessary components. ```sh $ mvn compile ``` -------------------------------- ### Run Camel Application Standalone Source: https://github.com/apache/camel-examples/blob/main/main-yaml/README.adoc Executes the Camel application using the Maven Camel plugin. This command starts the standalone Camel instance with the defined YAML routes. ```sh $ mvn camel:run ``` -------------------------------- ### Run Camel Debezium consumer Source: https://github.com/apache/camel-examples/blob/main/debezium/README.adoc Starts the Debezium consumer component in a separate shell. This consumer loads data produced by Debezium into Cassandra, including an initial snapshot and subsequent changes. ```sh mvn exec:java -Pdebezium-consumer ``` -------------------------------- ### Run Camel MongoDB Integration Application Source: https://github.com/apache/camel-examples/blob/main/mongodb/README.adoc Command to execute the compiled Camel application, starting the integration with MongoDB. ```sh $ mvn exec:java ``` -------------------------------- ### Run and Monitor Demo Containers Source: https://github.com/apache/camel-examples/blob/main/resume-api/resume-api-fileset-clusterized/README.md This command starts the demo containers in detached mode, streams their logs to the console for monitoring, and then tears down the containers upon completion or interruption. It specifically monitors logs from 'example-1' and 'example-2' services. ```shell docker compose up -d && docker compose logs -f example-1 example-2 ; docker compose down ``` -------------------------------- ### Start PostgreSQL Docker Container Source: https://github.com/apache/camel-examples/blob/main/kamelet-sql/README.adoc This command starts a PostgreSQL Docker container named 'psql' with a specified password, running it in detached mode. ```sh docker run --name psql -e POSTGRES_PASSWORD=secret -d postgres ``` -------------------------------- ### Run Cassandra Resume API Consumer Example Source: https://github.com/apache/camel-examples/blob/main/resume-api/resume-api-cassandraql/README.md Command to execute the Java application for consuming data from Cassandra using the Resume API. Configures Kafka for offset storage, Cassandra host, and batch size. ```shell java -Dresume.type=kafka \ -Dresume.type=kafka \ -Dresume.type.kafka.topic=cassandra-offsets \ -Dcassandra.host=cassandra-host.com \ -Dcassandra.cql3.port=9042 \ -Dbootstrap.address=kafka-host:9092 \ -Dbatch.size=50 \ -jar /deployments/example.jar ``` -------------------------------- ### Run MongoDB Instance with Docker Source: https://github.com/apache/camel-examples/blob/main/mongodb/README.adoc Command to start a MongoDB server locally as a Docker container, exposing port 27017 for connections. ```sh docker run -d --name mongodb -p 27017:27017 mongo ``` -------------------------------- ### Compile Camel Kafka Example Project Source: https://github.com/apache/camel-examples/blob/main/kafka/README.adoc Command to compile the Camel Kafka example project using Maven, preparing it for execution. ```sh $ mvn compile ``` -------------------------------- ### Run Camel Micrometer Example Source: https://github.com/apache/camel-examples/blob/main/main-micrometer/README.adoc Runs the compiled Apache Camel example application using the Camel Maven plugin. ```sh $ mvn camel:run ``` -------------------------------- ### Run Apache Camel MINA Server 1 Source: https://github.com/apache/camel-examples/blob/main/loadbalancing/README.adoc Starts the first Apache MINA TCP/IP server instance (localhost:9991) for the load balancing example. This should be run in a separate terminal session. ```sh mvn exec:java -Pmina1 ``` -------------------------------- ### Compile Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/main-tiny/README.adoc This command compiles the Apache Camel example project using Maven, preparing it for execution. ```sh $ mvn compile ``` -------------------------------- ### Build Apache Camel JMX Example Source: https://github.com/apache/camel-examples/blob/main/jmx/README.adoc This command compiles the Apache Camel JMX example project using Maven. It prepares the project for execution by compiling source code and packaging resources. ```shh $ mvn compile ``` -------------------------------- ### Run Apache Camel MINA Server 2 Source: https://github.com/apache/camel-examples/blob/main/loadbalancing/README.adoc Starts the second Apache MINA TCP/IP server instance (localhost:9992) for the load balancing example. This should be run in a separate terminal session. ```sh mvn exec:java -Pmina2 ``` -------------------------------- ### Build Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/routeloader/README.adoc This command compiles the Apache Camel example project using Maven. It prepares the project for execution by processing source files and dependencies. ```bash mvn compile ``` -------------------------------- ### Build Apache Camel Spring Example Source: https://github.com/apache/camel-examples/blob/main/spring/README.adoc Compiles the Apache Camel Spring example project using Maven. This step prepares the project for execution. ```Shell $ mvn compile ``` -------------------------------- ### Enable Camel Textual Route Debugging via Maven Profile Source: https://github.com/apache/camel-examples/blob/main/main/README.adoc Instructions to launch the Camel example with the `camel.debug` profile activated, enabling textual route debugging in IDEs. ```sh $ mvn camel:run -Pcamel.debug ``` -------------------------------- ### Run Apache Camel Example Source: https://github.com/apache/camel-examples/blob/main/azure/azure-storage-blob/README.adoc Executes the Apache Camel example in standalone mode using Maven's camel:run goal. The example can be stopped by hitting 'ctrl+c'. ```sh $ mvn camel:run ``` -------------------------------- ### Run Camel Cafe Example Source: https://github.com/apache/camel-examples/blob/main/cafe-endpointdsl/README.adoc Executes the Camel Cafe example application using Maven's Camel plugin. ```sh $ mvn camel:run ``` -------------------------------- ### Compile Camel Debezium example Source: https://github.com/apache/camel-examples/blob/main/debezium/README.adoc Compiles the Camel Debezium example project using Maven, preparing it for execution. ```sh mvn clean compile ``` -------------------------------- ### Build Apache Camel Resume API Demo with Maven and Docker Source: https://github.com/apache/camel-examples/blob/main/resume-api/resume-api-file-offset/README.md This command builds the Apache Camel Resume API example application and its associated Docker containers using Maven and Docker Compose. It first cleans the project and then packages it, followed by building the Docker images. ```shell mvn clean package && docker compose build ``` -------------------------------- ### Run Cassandra Docker container Source: https://github.com/apache/camel-examples/blob/main/debezium/README.adoc Starts a Cassandra instance using Docker, exposing it on port 9042. This instance will serve as the sink for Debezium events. ```sh docker run -p 9042:9042 --rm --name cassandra -d cassandra ``` -------------------------------- ### Build Demo and Containers Source: https://github.com/apache/camel-examples/blob/main/resume-api/resume-api-aws2-kinesis/README.md Command to compile the project and build the necessary Docker containers for the demo application. ```shell mvn clean package && docker compose build ``` -------------------------------- ### Run Apache Camel Console Example Source: https://github.com/apache/camel-examples/blob/main/console/README.adoc Executes the Apache Camel Console example using the Maven Camel plugin. ```sh $ mvn camel:run ``` -------------------------------- ### Compile Camel Main Example Source: https://github.com/apache/camel-examples/blob/main/azure/kafka-azure/README.adoc Compiles the Camel Main example project using Maven, preparing it for execution. ```sh $ mvn compile ``` -------------------------------- ### Run Apache Camel Maven Example Source: https://github.com/apache/camel-examples/blob/main/vault/aws-secrets-manager-reloading/README.adoc This Maven command executes the Apache Camel example application. It uses the `camel:run` goal to start the Camel context, allowing it to retrieve secrets from AWS Secrets Manager and demonstrate context reloading. Observe the console output for confirmation of successful operation and secret retrieval. ```sh $ mvn camel:run ``` -------------------------------- ### Run Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/aws/main-endpointdsl-aws2-s3-kafka/README.adoc Executes the Camel application using Maven's `camel:run` goal, starting the route that polls S3 and sends to Kafka. ```sh $ mvn camel:run ``` -------------------------------- ### Launch Cassandra Docker Container Source: https://github.com/apache/camel-examples/blob/main/resume-api/resume-api-cassandraql/README.md Command to run a Cassandra 4 Docker container, mapping port 9042. ```shell docker run -p 9042:9042 -it cassandra:4 ``` -------------------------------- ### Enable Camel Textual Route Debugging via Maven Property Source: https://github.com/apache/camel-examples/blob/main/main/README.adoc Instructions to launch the Camel example by setting the `camel.debug` property from the command-line, enabling textual route debugging. ```sh $ mvn camel:run -Dcamel.debug=true ``` -------------------------------- ### Run Unit Tests for Camel Cafe Example Source: https://github.com/apache/camel-examples/blob/main/cafe-endpointdsl/README.adoc Executes the unit tests for the Camel Cafe example project using Maven. ```sh $ mvn test ``` -------------------------------- ### Run Camel jOOR Example Source: https://github.com/apache/camel-examples/blob/main/main-joor/README.adoc Executes the compiled Camel example using the Maven Camel plugin. ```sh $ mvn camel:run ``` -------------------------------- ### Compile Camel Kamelet Example Source: https://github.com/apache/camel-examples/blob/main/kamelet-chucknorris/README.adoc Compiles the Camel Kamelet example project using Maven. ```sh $ mvn compile ``` -------------------------------- ### Build Camel csimple Example Source: https://github.com/apache/camel-examples/blob/main/csimple-joor/README.adoc Compiles the Camel csimple example project using Maven. This step is required before running the application. ```sh $ mvn compile ``` -------------------------------- ### Compile Apache Camel MINA Load Balancing Example Source: https://github.com/apache/camel-examples/blob/main/loadbalancing/README.adoc Compiles the Apache Camel MINA load balancing example using Maven. ```sh $ mvn compile ``` -------------------------------- ### Run Camel Kamelet Example Source: https://github.com/apache/camel-examples/blob/main/kamelet-chucknorris/README.adoc Runs the Camel Kamelet example project using Maven's Camel plugin. ```sh $ mvn camel:run ``` -------------------------------- ### Build Demo and Containers Source: https://github.com/apache/camel-examples/blob/main/resume-api/resume-api-fileset-clusterized/README.md This command builds the demo application and its associated Docker containers using Maven for packaging and Docker Compose for container image creation. ```shell mvn clean package && docker compose build ``` -------------------------------- ### Run Apache Camel Load Balancer Client Source: https://github.com/apache/camel-examples/blob/main/loadbalancing/README.adoc Starts the Apache Camel load balancer client, which distributes messages to the MINA servers. This should be run in a separate terminal session. ```sh mvn exec:java -Ploadbalancer ``` -------------------------------- ### Compile Camel jOOR Example Source: https://github.com/apache/camel-examples/blob/main/main-joor/README.adoc Compiles the Camel example using Maven. This step is necessary before running the application. ```sh $ mvn compile ``` -------------------------------- ### Compile Camel Example Source: https://github.com/apache/camel-examples/blob/main/main-health/README.adoc Compiles the Apache Camel example project using Maven. ```sh $ mvn compile ``` -------------------------------- ### Run Apache Camel JOOQ Example with Maven Source: https://github.com/apache/camel-examples/blob/main/jooq/README.adoc This command runs the Apache Camel JOOQ example using the Maven `camel:run` goal. The example will continue to run until manually stopped, typically by pressing Ctrl+c. ```sh $ mvn camel:run ``` -------------------------------- ### Compile Camel Debezium Example Project Source: https://github.com/apache/camel-examples/blob/main/debezium-eventhubs-blob/README.adoc Compiles the Camel Debezium example project using Maven. This step prepares the project for execution. ```sh $ mvn clean compile ``` -------------------------------- ### Checkout Specific Apache Camel Examples Release Tag Source: https://github.com/apache/camel-examples/blob/main/README.adoc To ensure stability and work with a released version of the Apache Camel examples, use this Git command to switch your repository to a specific release tag, such as 'camel-examples-4.8.0'. This is recommended over using the development-focused main branch. ```Bash $ git checkout tags/camel-examples-4.8.0 ``` -------------------------------- ### Run Couchbase Docker Container Source: https://github.com/apache/camel-examples/blob/main/couchbase-log/README.adoc This command starts a Couchbase Docker container in detached mode, mapping necessary ports for access. It names the container 'db' and uses the 'couchbase:7.0.3' image. ```sh docker run -d --name db -p 8091-8094:8091-8094 -p 11210:11210 couchbase:7.0.3 ``` -------------------------------- ### Build Camel MapStruct Example Source: https://github.com/apache/camel-examples/blob/main/mapstruct/README.adoc Compiles the Camel MapStruct example using Maven, preparing it for execution. ```sh $ mvn compile ``` -------------------------------- ### Build Camel FTP Example Source: https://github.com/apache/camel-examples/blob/main/ftp/README.adoc Compiles the Apache Camel FTP example project using Maven. This step is necessary before running either the client or server applications. ```sh $ mvn compile ``` -------------------------------- ### Read All Documents via GET Request Source: https://github.com/apache/camel-examples/blob/main/mongodb/README.adoc Curl command to retrieve all documents by sending a GET request to the root `/` endpoint of the Camel application. ```sh $ curl localhost:8081 ``` -------------------------------- ### Build Camel Java 8 Example Source: https://github.com/apache/camel-examples/blob/main/java-lambda/README.adoc Compiles the Camel Java 8 example project using Maven. ```sh $ mvn compile ``` -------------------------------- ### Run Camel Example Source: https://github.com/apache/camel-examples/blob/main/main-health/README.adoc Runs the Apache Camel example using the Camel Maven plugin. ```shell $ mvn camel:run ``` -------------------------------- ### Build Camel Example Source: https://github.com/apache/camel-examples/blob/main/aws/main-endpointdsl-aws2/aws2-eventbridge-creator/README.adoc Compiles the Camel example project using Maven. ```sh $ mvn compile ``` -------------------------------- ### Build and Run Camel Example as Fat Jar Source: https://github.com/apache/camel-examples/blob/main/kamelet-sql/README.adoc These commands first package the Camel application into a single 'fat jar' including all dependencies, then execute it as a standard Java application. ```sh mvn package -DskipTests java -jar target/camel-example-kamelet-sql-jar-with-dependencies.jar ``` -------------------------------- ### Build and Run Apache Camel Example with Maven Test Source: https://github.com/apache/camel-examples/blob/main/billboard-aggregate/README.adoc This command builds and runs the test suite for the Apache Camel example using Maven's `test` goal. It compiles the project and executes all tests, demonstrating the example's functionality and processing the Billboard dataset. ```sh $ mvn test ``` -------------------------------- ### Run Camel Example Source: https://github.com/apache/camel-examples/blob/main/aws/main-endpointdsl-aws2/aws2-eventbridge-creator/README.adoc Executes the Camel example application using Maven. ```sh $ mvn camel:run ``` -------------------------------- ### Compile Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/main-endpointdsl/README.adoc This command compiles the Camel example project using Maven. It ensures all dependencies are resolved and the project is ready to run. ```sh $ mvn compile ``` -------------------------------- ### Run Camel MinIO Example with Maven Source: https://github.com/apache/camel-examples/blob/main/minio/README.adoc This command executes the Apache Camel MinIO example application. It leverages the Camel Maven plugin to run the defined Camel routes, demonstrating MinIO object put and poll operations. ```sh $ mvn camel:run ``` -------------------------------- ### Run Camel AWS2 Kinesis Example Source: https://github.com/apache/camel-examples/blob/main/aws/main-endpointdsl-aws-kcl-kinesis/README.adoc Executes the Camel example application using the Camel Maven plugin. This command starts the application, which will then poll the configured Kinesis Data Stream. ```sh $ mvn camel:run ``` -------------------------------- ### Compile Apache Camel Basic Example Source: https://github.com/apache/camel-examples/blob/main/basic/README.adoc Compiles the Apache Camel basic example using Maven. This step is required before running the application. ```Shell $ mvn compile ``` -------------------------------- ### Build Apache Camel Spring XQuery Example Source: https://github.com/apache/camel-examples/blob/main/spring-xquery/README.adoc Compiles the Apache Camel Spring XQuery example using the Maven build tool. This command processes source code and resources, preparing the project for execution. ```shell mvn compile ``` -------------------------------- ### Compile Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/couchbase-log/README.adoc This command compiles the Camel example project using Maven. It's a prerequisite before running the application. ```sh $ mvn compile ``` -------------------------------- ### Run Salesforce Streaming API Example with Maven Source: https://github.com/apache/camel-examples/blob/main/salesforce-consumer/README.adoc Execute the Apache Camel Salesforce Streaming API example using Maven. This command compiles the project and then runs the Camel application. ```Shell $ mvn compile camel:run ``` -------------------------------- ### Run Camel MapStruct Example Source: https://github.com/apache/camel-examples/blob/main/mapstruct/README.adoc Executes the Camel MapStruct example using Maven, making it ready to process requests. ```sh $ mvn camel:run ``` -------------------------------- ### Compile Apache Camel Cafe Example Source: https://github.com/apache/camel-examples/blob/main/cafe/README.adoc This command compiles the Apache Camel Cafe example project. It ensures all necessary dependencies are resolved and the Java code is translated into bytecode, preparing the application for execution. ```sh $ mvn compile ``` -------------------------------- ### Run Unit Tests for Apache Camel Cafe Example Source: https://github.com/apache/camel-examples/blob/main/cafe/README.adoc This command runs the comprehensive suite of unit tests implemented for the Apache Camel Cafe example. It verifies the correctness and functionality of the application's components and routing logic. ```sh $ mvn test ``` -------------------------------- ### Run Camel Kamelet Main with Maven Plugin Source: https://github.com/apache/camel-examples/blob/main/kamelet-main/README.adoc Executes the Camel Kamelet Main example application using the Camel Maven plugin. ```sh mvn camel:run ``` -------------------------------- ### Run Camel Java 8 Example Source: https://github.com/apache/camel-examples/blob/main/java-lambda/README.adoc Executes the Camel Java 8 example using the Maven Camel plugin. ```sh $ mvn camel:run ``` -------------------------------- ### Compile Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/main-lambda/README.adoc This shell command compiles the Camel example project using Maven. It's the necessary first step to build the application before execution. ```sh $ mvn compile ``` -------------------------------- ### Run Apache Camel Basic Example Source: https://github.com/apache/camel-examples/blob/main/basic/README.adoc Runs the Apache Camel basic example using the Camel Maven plugin. The application can be stopped by pressing `ctrl+c`. ```Shell $ mvn camel:run ``` -------------------------------- ### Run Camel XML Example with Debug Property Source: https://github.com/apache/camel-examples/blob/main/main-xml/README.adoc Activates textual route debugging by setting the `camel.debug` property to true from the command line when running the Camel example. ```sh $ mvn camel:run -Dcamel.debug=true ``` -------------------------------- ### Run Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/aws/main-endpointdsl-aws2-s3/README.adoc Instructions to run the Camel example using the Maven Camel plugin. ```sh $ mvn camel:run ``` -------------------------------- ### Compile Apache Camel Example Source: https://github.com/apache/camel-examples/blob/main/vault/google-secret-manager-reloading/README.adoc Compiles the Apache Camel example project using Maven, preparing it for execution. ```sh $ mvn compile ``` -------------------------------- ### Run Camel with Debug Profile for Route Debugging Source: https://github.com/apache/camel-examples/blob/main/main-yaml/README.adoc Launches the Camel example with the 'camel.debug' Maven profile. This enables support for Camel Textual Route debugging in compatible IDEs. ```sh $ mvn camel:run -Pcamel.debug ``` -------------------------------- ### Compile Apache Camel Example Source: https://github.com/apache/camel-examples/blob/main/aws/main-endpointdsl-kafka-aws2-s3/README.adoc Compiles the Apache Camel example project using Maven. ```sh $ mvn compile ``` -------------------------------- ### Compile Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/aws/main-endpointdsl-aws2-s3/README.adoc Instructions to compile the Camel example by executing the Maven compile command. ```sh $ mvn compile ``` -------------------------------- ### Build Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/kamelet-sql/README.adoc This command compiles the Camel example project using Maven, preparing it for execution. ```sh mvn compile ``` -------------------------------- ### Camel AWS Secrets Manager Example Console Output Source: https://github.com/apache/camel-examples/blob/main/vault/aws-secrets-manager/README.adoc Sample console output demonstrating the successful startup of the Camel application, including auto-configuration summary, route startup, and a log message showing a retrieved Amazon price, confirming the integration with AWS Secrets Manager. ```sh 07:28:51.140 [org.apache.camel.example.MyApplication.main()] INFO o.apache.camel.main.BaseMainSupport - Auto-configuration summary 07:28:51.142 [org.apache.camel.example.MyApplication.main()] INFO o.apache.camel.main.BaseMainSupport - camel.main.name=AWS-secrets-manager 07:28:51.143 [org.apache.camel.example.MyApplication.main()] INFO o.apache.camel.main.BaseMainSupport - camel.main.jmxEnabled=false 07:28:51.143 [org.apache.camel.example.MyApplication.main()] INFO o.apache.camel.main.BaseMainSupport - camel.main.beanIntrospectionLoggingLevel=INFO 07:28:51.143 [org.apache.camel.example.MyApplication.main()] INFO o.apache.camel.main.BaseMainSupport - camel.main.fileConfigurations=src/main/data/*.properties 07:28:51.143 [org.apache.camel.example.MyApplication.main()] INFO o.apache.camel.main.BaseMainSupport - camel.component.aws-secrets-manager.accessKey=xxxxxx 07:28:51.143 [org.apache.camel.example.MyApplication.main()] INFO o.apache.camel.main.BaseMainSupport - camel.component.aws-secrets-manager.secretKey=xxxxxx 07:28:51.143 [org.apache.camel.example.MyApplication.main()] INFO o.apache.camel.main.BaseMainSupport - camel.component.aws-secrets-manager.region=eu-west-1 07:28:51.699 [org.apache.camel.example.MyApplication.main()] INFO o.a.c.i.engine.AbstractCamelContext - Routes startup summary (total:1 started:1) 07:28:51.699 [org.apache.camel.example.MyApplication.main()] INFO o.a.c.i.engine.AbstractCamelContext - Started route1 (timer://myTimer) 07:28:51.699 [org.apache.camel.example.MyApplication.main()] INFO o.a.c.i.engine.AbstractCamelContext - Apache Camel 3.18.0 (AWS-secrets-manager) started in 537ms (build:27ms init:112ms start:398ms) 07:28:53.429 [Camel (AWS-secrets-manager) thread #0 - timer://myTimer] INFO o.a.c.component.http.HttpComponent - Created ClientConnectionManager org.apache.http.impl.conn.PoolingHttpClientConnectionManager@7d5604cb 07:28:54.128 [Camel (AWS-secrets-manager) thread #0 - timer://myTimer] INFO route1 - Current Amazon price: 3135.73 $ ``` -------------------------------- ### Compile Camel csimple Example Source: https://github.com/apache/camel-examples/blob/main/csimple/README.adoc Compiles the Apache Camel csimple example project using Maven. This step is necessary to generate and compile the Java source code from the csimple scripts. ```sh $ mvn compile ``` -------------------------------- ### Run Apache Camel Telegram API Example Source: https://github.com/apache/camel-examples/blob/main/telegram/README.adoc Execute the Apache Camel Telegram API example using Maven to compile and run the Java application. ```bash $ mvn compile exec:java ``` -------------------------------- ### Compile Apache Camel Azure Key Vault Example Source: https://github.com/apache/camel-examples/blob/main/vault/azure-key-vault-reloading/README.adoc This command compiles the Apache Camel Azure Key Vault example using Maven. ```sh $ mvn compile ``` -------------------------------- ### Compile Camel Spring & Pulsar Example Project Source: https://github.com/apache/camel-examples/blob/main/spring-pulsar/README.adoc This Maven command compiles the entire Camel Spring & Pulsar example project. Successful compilation is a prerequisite for executing the server and client components. ```shell mvn compile ``` -------------------------------- ### Package and Run Camel Kamelet Main as Fat JAR Source: https://github.com/apache/camel-examples/blob/main/kamelet-main/README.adoc Packages the Camel Kamelet Main example into a self-contained 'fat' JAR, skipping tests during the packaging phase, and then executes the resulting JAR. ```sh mvn package -DskipTests java -jar target/camel-example-kamelet-main-jar-with-dependencies.jar ``` -------------------------------- ### Compile Apache Camel JOOQ Example Source: https://github.com/apache/camel-examples/blob/main/jooq/README.adoc This command compiles the Apache Camel JOOQ example project. It triggers the Maven `generate-sources` phase, which creates the database and generates JOOQ classes in the `target/generated-sources/jooq` directory. ```sh $ mvn compile ``` -------------------------------- ### Build Camel Aggregate Example Source: https://github.com/apache/camel-examples/blob/main/aggregate/README.adoc Compiles the Camel Aggregate example using Maven, preparing it for execution. ```sh $ mvn compile ``` -------------------------------- ### Compile Camel Example Source: https://github.com/apache/camel-examples/blob/main/aws/main-endpointdsl-aws2/aws2-s3-events-inject/README.adoc Compiles the Camel example project using Maven. This step is necessary before running the application. ```sh $ mvn compile ``` -------------------------------- ### Apache Camel Application Startup Log Source: https://github.com/apache/camel-examples/blob/main/vault/google-secret-manager-reloading/README.adoc Example log output showing the startup of the Apache Camel application, including the auto-configuration summary from `application.properties`. ```text 06:49:49.293 [org.apache.camel.example.MyApplication.main()] INFO org.apache.camel.main.MainSupport - Apache Camel (Main) 3.19.0-SNAPSHOT is starting 06:49:49.377 [org.apache.camel.example.MyApplication.main()] INFO o.apache.camel.main.BaseMainSupport - Classpath scanning enabled from base package: org.apache.camel.example 06:49:49.477 [org.apache.camel.example.MyApplication.main()] INFO o.apache.camel.main.BaseMainSupport - Auto-configuration summary 06:49:49.478 [org.apache.camel.example.MyApplication.main()] INFO o.apache.camel.main.BaseMainSupport - [application.properties] camel.main.name=gcp-secrets-manager 06:49:49.478 [org.apache.camel.example.MyApplication.main()] INFO o.apache.camel.main.BaseMainSupport - [application.properties] camel.main.jmxEnabled=false 06:49:49.478 [org.apache.camel.example.MyApplication.main()] INFO o.apache.camel.main.BaseMainSupport - [application.properties] camel.main.beanIntrospectionLoggingLevel=INFO 06:49:49.478 [org.apache.camel.example.MyApplication.main()] INFO o.apache.camel.main.BaseMainSupport - [application.properties] camel.main.contextReloadEnabled=true 06:49:49.478 [org.apache.camel.example.MyApplication.main()] INFO o.apache.camel.main.BaseMainSupport - [application.properties] camel.vault.gcp.projectId=gcp-sec-refresh ``` -------------------------------- ### Compile Apache Camel Example Source: https://github.com/apache/camel-examples/blob/main/aws/main-endpointdsl-kafka-aws2-s3-restarting-policy/README.adoc Compiles the Apache Camel example project using Maven, preparing it for execution. This step ensures all dependencies are resolved and the project is built. ```sh $ mvn compile ``` -------------------------------- ### Compile Apache Camel JDBC Example Source: https://github.com/apache/camel-examples/blob/main/jdbc/README.adoc Compiles the Apache Camel JDBC example project using Maven. This step is necessary before running the application. ```sh $ mvn compile ``` -------------------------------- ### Build and Deploy Camel Example to Kubernetes with Maven Source: https://github.com/apache/camel-examples/blob/main/hazelcast-kubernetes/README.adoc This command builds the Apache Camel example project using Maven and deploys it to a Kubernetes cluster via the Fabric8 plugin. It ensures a clean build and utilizes the 'kubernetes-install' profile for specific deployment configurations. ```Shell mvn clean -Pkubernetes-install fabric8:deploy ``` -------------------------------- ### Run Camel Example Module Source: https://github.com/apache/camel-examples/blob/main/aws/main-endpointdsl-aws2/README.adoc This command compiles and runs the Camel example module. It should be executed in the respective submodule directory (aws2-eventbridge-creator, aws2-sqs-consumer, or aws2-s3-events-inject). For the SQS consumer, the route should be left running to process events. ```sh $ mvn camel:run ``` -------------------------------- ### Run Camel with Debug Property for Route Debugging Source: https://github.com/apache/camel-examples/blob/main/main-yaml/README.adoc Launches the Camel example by setting the 'camel.debug' system property. This alternative method also enables textual route debugging from the command line. ```sh $ mvn camel:run -Dcamel.debug=true ``` -------------------------------- ### Compile Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/aws/main-endpointdsl-aws2/aws2-sqs-consumer/README.adoc This command compiles the Camel example project using Maven. It is the necessary first step before running the application, ensuring all dependencies are resolved and classes are built. ```sh $ mvn compile ``` -------------------------------- ### Compile Camel AWS2 Kinesis Example Source: https://github.com/apache/camel-examples/blob/main/aws/main-endpointdsl-aws-kcl-kinesis/README.adoc Compiles the Camel example project using Maven. This step is necessary before running the application. ```sh $ mvn compile ``` -------------------------------- ### Compile Camel MinIO Example with Maven Source: https://github.com/apache/camel-examples/blob/main/minio/README.adoc This command compiles the Apache Camel MinIO example project. It uses Maven to build the project, ensuring all dependencies are resolved and classes are compiled before execution. ```sh $ mvn compile ``` -------------------------------- ### Compile Apache Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/kamelet/README.adoc This command compiles the Apache Camel example project using Maven. It ensures all necessary dependencies are downloaded and the Java source files are compiled into bytecode, preparing the application for execution. ```sh $ mvn compile ``` -------------------------------- ### Read Single Document by ID via GET Request Source: https://github.com/apache/camel-examples/blob/main/mongodb/README.adoc Curl command to fetch a specific document by providing its ID as a query parameter to the `/hello` endpoint. ```sh $ curl "localhost:8081/hello?id=" ``` -------------------------------- ### Build and Run Camel Persistent Aggregate Example Source: https://github.com/apache/camel-examples/blob/main/aggregate-dist/README.adoc This command compiles and executes the Camel Persistent Aggregate example using Maven. ```sh $ mvn clean compile exec:java ``` -------------------------------- ### Build Apache Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/transformer-demo/README.adoc Compiles the Apache Camel example project using the Maven build tool. ```Shell mvn compile ``` -------------------------------- ### Run Demo in Detached Mode and Stream Logs Source: https://github.com/apache/camel-examples/blob/main/resume-api/resume-api-aws2-kinesis/README.md Command to start the demo containers in detached mode, stream their logs to the console, and then shut them down upon termination of the log stream. ```shell docker compose up -d && docker compose logs --no-log-prefix -f example ; docker compose down ``` -------------------------------- ### Compile Camel Example with Maven Source: https://github.com/apache/camel-examples/blob/main/aws/main-endpointdsl-aws2-s3-kafka/README.adoc Compiles the Camel project using Maven's `compile` goal, preparing it for execution. ```sh $ mvn compile ``` -------------------------------- ### Camel Web Console and Jolokia API Endpoints Source: https://github.com/apache/camel-examples/blob/main/main/README.adoc Details the embedded developer console and health-check endpoints, along with the Jolokia API for JMX operations. Provides an example URL to query MemoryMBean. ```APIDOC Embedded developer console: http://localhost:8080/q/dev Health-check status: http://localhost:8080/q/health Jolokia API: http://localhost:8080/q/jolokia Example JMX query (MemoryMBean): http://localhost:8080/q/jolokia/read/java.lang:type=Memory/HeapMemoryUsage/used ```