├── .asf.yaml ├── .gitattributes ├── .github └── workflows │ ├── master-pr-build.yml │ └── master-push-build.yml ├── .gitignore ├── .mvn └── wrapper │ └── maven-wrapper.properties ├── LICENSE.txt ├── NOTICE.txt ├── README.adoc ├── aggregate-dist ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── Application.java │ └── resources │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── AggregateDistributedTest.java ├── aggregate ├── .gitignore ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── NumberAggregationStrategy.java │ └── resources │ │ ├── META-INF │ │ ├── LICENSE.txt │ │ ├── NOTICE.txt │ │ └── spring │ │ │ └── camel-context.xml │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── AggregateTest.java ├── aws ├── main-endpointdsl-aws-kcl-kinesis │ ├── README.adoc │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ └── MyRouteBuilder.java │ │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties ├── main-endpointdsl-aws2-s3-kafka │ ├── README.adoc │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── camel │ │ │ │ └── example │ │ │ │ ├── MyApplication.java │ │ │ │ └── MyRouteBuilder.java │ │ └── resources │ │ │ ├── application.properties │ │ │ └── log4j2.properties │ │ └── test │ │ └── java │ │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── AwsS3KafkaTest.java ├── main-endpointdsl-aws2-s3 │ ├── README.adoc │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── camel │ │ │ │ └── example │ │ │ │ ├── MyApplication.java │ │ │ │ └── MyRouteBuilder.java │ │ └── resources │ │ │ ├── application.properties │ │ │ └── log4j2.properties │ │ └── test │ │ └── java │ │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── AwsS3Test.java ├── main-endpointdsl-aws2 │ ├── README.adoc │ ├── aws2-eventbridge-creator │ │ ├── README.adoc │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── camel │ │ │ │ └── example │ │ │ │ ├── MyApplication.java │ │ │ │ └── MyRouteBuilder.java │ │ │ └── resources │ │ │ ├── application.properties │ │ │ ├── eventpattern.json │ │ │ └── logback.xml │ ├── aws2-s3-events-inject │ │ ├── README.adoc │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── apache │ │ │ │ │ └── camel │ │ │ │ │ └── example │ │ │ │ │ ├── MyApplication.java │ │ │ │ │ └── MyRouteBuilder.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ └── logback.xml │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── AwsS3Test.java │ ├── aws2-sqs-consumer │ │ ├── README.adoc │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── apache │ │ │ │ │ └── camel │ │ │ │ │ └── example │ │ │ │ │ ├── MyApplication.java │ │ │ │ │ └── MyRouteBuilder.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ └── logback.xml │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── AwsSQSTest.java │ └── pom.xml ├── main-endpointdsl-kafka-aws2-s3-restarting-policy │ ├── README.adoc │ ├── data │ │ ├── burst.sh │ │ └── msg.txt │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── camel │ │ │ │ └── example │ │ │ │ ├── MyApplication.java │ │ │ │ └── MyRouteBuilder.java │ │ └── resources │ │ │ ├── application.properties │ │ │ └── log4j2.properties │ │ └── test │ │ └── java │ │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── KafkaAwsS3Test.java ├── main-endpointdsl-kafka-aws2-s3 │ ├── README.adoc │ ├── data │ │ ├── burst.sh │ │ └── msg.txt │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── camel │ │ │ │ └── example │ │ │ │ ├── MyApplication.java │ │ │ │ └── MyRouteBuilder.java │ │ └── resources │ │ │ ├── application.properties │ │ │ └── log4j2.properties │ │ └── test │ │ └── java │ │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── KafkaAwsS3Test.java └── pom.xml ├── azure ├── azure-eventhubs │ ├── README.adoc │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ └── MyRouteBuilder.java │ │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties ├── azure-storage-blob │ ├── README.adoc │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── azurestorageblob │ │ │ └── Application.java │ │ └── resources │ │ └── log4j2.properties ├── kafka-azure │ ├── README.adoc │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ └── MyRouteBuilder.java │ │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties └── pom.xml ├── basic ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── basic │ │ │ └── CamelBasic.java │ └── resources │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── basic │ └── CamelBasicTest.java ├── bigxml-split ├── README.adoc ├── pom.xml └── src │ └── test │ ├── java │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── bigxml │ │ ├── Record.java │ │ ├── StaxTokenizerTest.java │ │ ├── TestUtils.java │ │ └── XmlTokenizerTest.java │ └── resources │ └── log4j2.properties ├── billboard-aggregate ├── README.adoc ├── pom.xml └── src │ └── test │ ├── data │ └── billboard_lyrics_1964-2015.csv │ ├── java │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── billboard │ │ ├── BillboardAggrTest.java │ │ └── SongRecord.java │ └── resources │ └── log4j2.properties ├── cafe-endpointdsl ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── cafe │ │ │ ├── CafeRouteBuilder.java │ │ │ ├── Delivery.java │ │ │ ├── Drink.java │ │ │ ├── DrinkType.java │ │ │ ├── Order.java │ │ │ ├── OrderItem.java │ │ │ └── stuff │ │ │ ├── Barista.java │ │ │ ├── CafeAggregationStrategy.java │ │ │ ├── DrinkRouter.java │ │ │ ├── OrderSplitter.java │ │ │ └── Waiter.java │ └── resources │ │ ├── META-INF │ │ ├── LICENSE.txt │ │ └── NOTICE.txt │ │ └── log4j2.properties │ └── test │ ├── java │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── cafe │ │ ├── CafeRouteBuilderTest.java │ │ └── test │ │ ├── TestDrinkRouter.java │ │ └── TestWaiter.java │ └── resources │ ├── META-INF │ ├── LICENSE.txt │ └── NOTICE.txt │ └── log4j2.properties ├── cafe ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── cafe │ │ │ ├── CafeRouteBuilder.java │ │ │ ├── Customer.java │ │ │ ├── Delivery.java │ │ │ ├── Drink.java │ │ │ ├── DrinkType.java │ │ │ ├── Order.java │ │ │ ├── OrderItem.java │ │ │ └── stuff │ │ │ ├── Barista.java │ │ │ ├── CafeAggregationStrategy.java │ │ │ ├── DrinkRouter.java │ │ │ ├── OrderSplitter.java │ │ │ └── Waiter.java │ └── resources │ │ ├── META-INF │ │ ├── LICENSE.txt │ │ ├── NOTICE.txt │ │ ├── beans.xml │ │ ├── camel-routes.xml │ │ └── spring │ │ │ └── camel-context.xml │ │ └── log4j2.properties │ └── test │ ├── java │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── cafe │ │ ├── CafeRouteBuilderTest.java │ │ ├── CafeRouteSpringTest.java │ │ └── test │ │ ├── TestDrinkRouter.java │ │ └── TestWaiter.java │ └── resources │ ├── META-INF │ ├── LICENSE.txt │ ├── NOTICE.txt │ └── beans.xml │ └── log4j2.properties ├── cassandra-kubernetes ├── README.adoc ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── kubernetes │ │ └── jkube │ │ ├── CqlPopulateBean.java │ │ └── RowProcessor.java │ └── resources │ ├── META-INF │ └── spring │ │ └── camel-context.xml │ ├── jkube │ ├── cassandra-service.yaml │ └── cassandra-statefulset.yaml │ └── log4j2.properties ├── console ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── console │ │ │ └── CamelConsoleMain.java │ └── resources │ │ ├── META-INF │ │ ├── LICENSE.txt │ │ ├── NOTICE.txt │ │ └── spring │ │ │ └── camel-context.xml │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── console │ └── ConsoleTest.java ├── couchbase-log ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ └── MyRouteBuilder.java │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── CouchbaseTest.java ├── csimple-joor ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ └── MyRouteBuilder.java │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── CSimpleJOORTest.java ├── csimple ├── README.adoc ├── pom.xml └── src │ ├── generated │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── CSimpleScript1.java │ │ │ ├── CSimpleScript2.java │ │ │ └── CSimpleScript3.java │ └── resources │ │ └── META-INF │ │ └── services │ │ └── org │ │ └── apache │ │ └── camel │ │ └── csimple.properties │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ └── MyRouteBuilder.java │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── CSimpleTest.java ├── debezium-eventhubs-blob ├── .gitignore ├── README.adoc ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── debezium │ │ └── eventhubs │ │ └── blob │ │ ├── consumer │ │ ├── DebeziumMySqlConsumerToAzureEventHubs.java │ │ └── DebeziumMySqlConsumerToAzureEventHubsRouteBuilder.java │ │ └── producer │ │ ├── AzureEventHubsProducerToAzureBlob.java │ │ └── AzureEventHubsProducerToAzureBlobRouteBuilder.java │ └── resources │ ├── META-INF │ ├── LICENSE.txt │ └── NOTICE.txt │ ├── application.properties │ └── log4j2.properties ├── debezium ├── .gitignore ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── debezium │ │ │ ├── DebeziumPgSQLConsumerToKinesis.java │ │ │ └── KinesisProducerToCassandra.java │ └── resources │ │ ├── META-INF │ │ ├── LICENSE.txt │ │ └── NOTICE.txt │ │ ├── application.properties │ │ └── log4j2.properties │ └── test │ ├── java │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── debezium │ │ └── DebeziumTest.java │ └── resources │ └── org │ └── apache │ └── camel │ └── example │ └── debezium │ └── db-init.cql ├── flight-recorder ├── .gitignore ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ ├── MyBean.java │ │ │ └── MyRouteBuilder.java │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── FlightRecorderTest.java ├── ftp ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── ftp │ │ │ ├── MyFtpClient.java │ │ │ ├── MyFtpClientRouteBuilder.java │ │ │ ├── MyFtpServer.java │ │ │ └── MyFtpServerRouteBuilder.java │ └── resources │ │ ├── META-INF │ │ ├── LICENSE.txt │ │ └── NOTICE.txt │ │ ├── ftp.properties │ │ └── log4j2.properties │ └── test │ ├── java │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── ftp │ │ └── FtpTest.java │ └── resources │ └── users.properties ├── google ├── README.adoc ├── google-pubsub │ ├── README.adoc │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ └── MyRouteBuilder.java │ │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties └── pom.xml ├── hazelcast-kubernetes ├── README.adoc ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── kubernetes │ │ └── fmp │ │ └── HazelcastRoute.java │ └── resources │ ├── META-INF │ └── spring │ │ └── camel-context.xml │ ├── fabric8 │ ├── hazelcast-deployment.yaml │ └── hazelcast-service.yaml │ └── log4j.properties ├── java-lambda ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── java8 │ │ │ └── MyApplication.java │ └── resources │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── java8 │ └── Java8Test.java ├── jdbc ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── jdbc │ │ │ └── RecordProcessor.java │ └── resources │ │ ├── META-INF │ │ ├── LICENSE.txt │ │ ├── NOTICE.txt │ │ └── spring │ │ │ └── camel-context.xml │ │ ├── create-derby.sql │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── jdbc │ └── JdbcTest.java ├── jmx ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── jmx │ │ │ ├── ISimpleMXBean.java │ │ │ ├── MyRouteBuilder.java │ │ │ └── SimpleBean.java │ └── resources │ │ ├── META-INF │ │ ├── LICENSE.txt │ │ ├── NOTICE.txt │ │ └── spring │ │ │ └── camel-context.xml │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── jmx │ └── JMXTest.java ├── jooq ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── examples │ │ │ └── jooq │ │ │ └── BookStoreRecordBean.java │ └── resources │ │ ├── META-INF │ │ └── spring │ │ │ ├── camel-context.xml │ │ │ └── jooq-spring.xml │ │ ├── config.properties │ │ ├── db-hsql.sql │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── examples │ └── jooq │ └── JOOQTest.java ├── kafka ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── kafka │ │ │ ├── MessageConsumerClient.java │ │ │ ├── MessagePublisherClient.java │ │ │ └── StringPartitioner.java │ └── resources │ │ ├── META-INF │ │ ├── LICENSE.txt │ │ └── NOTICE.txt │ │ ├── application.properties │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── kafka │ └── KafkaTest.java ├── kamelet-chucknorris ├── README.adoc ├── pom.xml └── src │ ├── main │ └── resources │ │ ├── application.properties │ │ ├── camel │ │ └── my-route.xml │ │ ├── kamelets │ │ └── chuck-norris-source.kamelet.yaml │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── KameletChuckNorrisTest.java ├── kamelet-main ├── README.adoc ├── pom.xml └── src │ ├── main │ └── resources │ │ ├── application.properties │ │ ├── camel │ │ └── my-route.camel.yaml │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── KameletMainTest.java ├── kamelet-sql ├── README.adoc ├── pom.xml ├── script │ ├── populate.sql │ └── table.sql └── src │ └── main │ └── resources │ ├── application.properties │ ├── camel │ └── my-route.camel.yaml │ └── log4j2.properties ├── kamelet ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ ├── MyRouteTemplates.java │ │ │ └── MyRoutes.java │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── KameletTest.java ├── loadbalancing ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── model │ │ │ └── Report.java │ │ │ └── service │ │ │ ├── Generator.java │ │ │ └── Reporting.java │ └── resources │ │ ├── META-INF │ │ ├── LICENSE.txt │ │ ├── NOTICE.txt │ │ └── spring │ │ │ ├── camel-context-loadbalancer.xml │ │ │ ├── camel-context-mina1.xml │ │ │ ├── camel-context-mina2.xml │ │ │ ├── camel-route-context-loadbalancer.xml │ │ │ └── camel-route-template-mina.xml │ │ └── log4j2.properties │ └── test │ ├── java │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── LoadBalancingTest.java │ └── resources │ └── org │ └── apache │ └── camel │ └── example │ └── test-camel-context.xml ├── main-endpointdsl ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ ├── MyBean.java │ │ │ └── MyRouteBuilder.java │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── MainEndpointDSLTest.java ├── main-health ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MonkeyHealthCheck.java │ │ │ ├── MyApplication.java │ │ │ └── MyRouteBuilder.java │ └── resources │ │ ├── META-INF │ │ └── services │ │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── health-check │ │ │ └── monkey-check │ │ ├── application.properties │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── MainHealthTest.java ├── main-joor ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ ├── MyRouteBuilder.java │ │ │ ├── MyUser.java │ │ │ └── UserFactoryBean.java │ └── resources │ │ ├── application.properties │ │ ├── camel-joor.properties │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── MainJOORTest.java ├── main-lambda ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ ├── MyBean.java │ │ │ └── MyConfiguration.java │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── MainLambdaTest.java ├── main-micrometer ├── README.adoc ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── MyApplication.java │ └── resources │ ├── application.properties │ ├── camel │ └── demo.camel.yaml │ └── log4j2.properties ├── main-tiny ├── README.adoc ├── pom.xml └── src │ ├── generated │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── MyBeanConfigurer.java │ └── resources │ │ └── META-INF │ │ └── services │ │ └── org │ │ └── apache │ │ └── camel │ │ └── configurer │ │ └── org.apache.camel.example.MyBean │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ ├── MyBean.java │ │ │ └── MyRouteBuilder.java │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── MainTinyTest.java ├── main-xml ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ ├── MyBean.java │ │ │ └── MyConfiguration.java │ └── resources │ │ ├── application.properties │ │ ├── log4j2.properties │ │ └── routes │ │ └── my-route.xml │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── MainXMLTest.java ├── main-yaml ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ ├── MyBean.java │ │ │ └── MyConfiguration.java │ └── resources │ │ ├── application.properties │ │ ├── log4j2.properties │ │ └── routes │ │ └── my-route.camel.yaml │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── MainYAMLTest.java ├── main ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ ├── MyBean.java │ │ │ ├── MyConfiguration.java │ │ │ ├── MyRouteBuilder.java │ │ │ └── StandaloneCamel.java │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ ├── MainTest.java │ └── MainWithAnnotationTest.java ├── mapstruct ├── README.adoc ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ ├── MyApplication.java │ │ ├── MyBeanEnricher.java │ │ ├── MyRoute.java │ │ └── mapper │ │ └── BeerMapper.java │ └── resources │ ├── application.properties │ ├── documents │ ├── beer.json │ └── beverage.json │ └── log4j2.properties ├── minio ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MinioConsumer.java │ │ │ ├── MinioProducer.java │ │ │ └── MyApplication.java │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── MainMinioTest.java ├── mongodb ├── README.adoc ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── mongodb │ │ ├── Application.java │ │ ├── MongoDBFindAllRouteBuilder.java │ │ ├── MongoDBFindByIDRouteBuilder.java │ │ └── MongoDBInsertRouteBuilder.java │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── mongodb │ └── MongoDBTest.java ├── mvnw ├── mvnw.cmd ├── netty-custom-correlation ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── netty │ │ │ ├── MyClient.java │ │ │ ├── MyCodecDecoder.java │ │ │ ├── MyCodecDecoderFactory.java │ │ │ ├── MyCodecEncoder.java │ │ │ ├── MyCodecEncoderFactory.java │ │ │ ├── MyCorrelationManager.java │ │ │ └── MyServer.java │ └── resources │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── netty │ └── NettyTest.java ├── pom.xml ├── resume-api ├── README.md ├── pom.xml ├── resume-api-aws2-kinesis │ ├── README.md │ ├── compose.yaml │ ├── pom.xml │ └── src │ │ └── main │ │ ├── docker │ │ └── Dockerfile │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── resume │ │ │ └── aws │ │ │ └── kinesis │ │ │ └── main │ │ │ ├── KinesisRoute.java │ │ │ └── MainApp.java │ │ ├── resources │ │ └── log4j2.properties │ │ └── scripts │ │ └── run.sh ├── resume-api-cassandraql │ ├── README.md │ ├── compose.yaml │ ├── pom.xml │ └── src │ │ └── main │ │ ├── docker │ │ └── Dockerfile │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── resume │ │ │ └── cassandra │ │ │ └── main │ │ │ ├── CassandraClient.java │ │ │ ├── CassandraRoute.java │ │ │ ├── ExampleDao.java │ │ │ ├── ExampleEntry.java │ │ │ ├── ExampleResultSetConversionStrategy.java │ │ │ └── MainApp.java │ │ ├── resources │ │ └── log4j2.properties │ │ └── scripts │ │ └── run.sh ├── resume-api-common │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── resume │ │ └── strategies │ │ └── kafka │ │ ├── KafkaUtil.java │ │ ├── check │ │ └── CheckRoute.java │ │ ├── file │ │ └── LargeFileRouteBuilder.java │ │ └── fileset │ │ └── LargeDirectoryRouteBuilder.java ├── resume-api-file-offset │ ├── README.md │ ├── compose.yaml │ ├── pom.xml │ └── src │ │ └── main │ │ ├── docker │ │ └── Dockerfile │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── resume │ │ │ └── file │ │ │ └── offset │ │ │ └── main │ │ │ └── MainApp.java │ │ ├── resources │ │ └── log4j2.properties │ │ └── scripts │ │ └── run.sh ├── resume-api-fileset-clusterized │ ├── README.md │ ├── compose.yaml │ ├── pom.xml │ └── src │ │ └── main │ │ ├── docker │ │ └── Dockerfile │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── resume │ │ │ └── fileset │ │ │ └── clusterized │ │ │ ├── main │ │ │ ├── ClusterizedListener.java │ │ │ └── MainApp.java │ │ │ └── strategies │ │ │ └── ClusterizedLargeDirectoryRouteBuilder.java │ │ ├── resources │ │ └── log4j2.properties │ │ └── scripts │ │ └── run.sh ├── resume-api-fileset-wal │ ├── README.md │ ├── compose.yaml │ ├── pom.xml │ └── src │ │ └── main │ │ ├── docker │ │ └── Dockerfile │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── resume │ │ │ └── fileset │ │ │ └── wal │ │ │ └── main │ │ │ └── MainApp.java │ │ ├── resources │ │ └── log4j2.properties │ │ └── scripts │ │ ├── noop.sh │ │ └── run.sh └── resume-api-fileset │ ├── README.md │ ├── compose.yaml │ ├── pom.xml │ └── src │ └── main │ ├── docker │ └── Dockerfile │ ├── java │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── resume │ │ └── fileset │ │ └── main │ │ └── MainApp.java │ ├── resources │ └── log4j2.properties │ └── scripts │ └── run.sh ├── routeloader ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── MyApplication.java │ └── resources │ │ ├── application.properties │ │ ├── log4j2.properties │ │ └── myroutes │ │ ├── MyRouteBuilder.java │ │ ├── cheese-route.xml │ │ └── my-yaml-route.camel.yaml │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── RouteLoaderTest.java ├── routes-configuration ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ ├── MyJavaErrorHandler.java │ │ │ └── MyJavaRouteBuilder.java │ └── resources │ │ ├── application.properties │ │ ├── log4j2.properties │ │ ├── myerror │ │ ├── xml-error.xml │ │ └── yaml-error.yaml │ │ └── myroutes │ │ ├── my-xml-route.xml │ │ └── my-yaml-route.camel.yaml │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── RoutesConfigurationTest.java ├── routetemplate-xml ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── MyApplication.java │ └── resources │ │ ├── application.properties │ │ ├── builders │ │ └── my-template-builder.xml │ │ ├── log4j2.properties │ │ └── templates │ │ └── my-route-templates.xml │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── RouteTemplateXMLTest.java ├── routetemplate ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ ├── MyRouteTemplates.java │ │ │ └── MyTemplateBuilder.java │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── RouteTemplateTest.java ├── salesforce-consumer ├── README.adoc ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── salesforce │ │ ├── Application.java │ │ └── SalesforceRouteBuilder.java │ └── resources │ ├── application.properties │ └── simplelogger.properties ├── splunk ├── README.adoc ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── splunk │ │ ├── publish │ │ ├── SplunkEventProcessor.java │ │ ├── SplunkPublishEventClient.java │ │ └── SplunkPublishEventRouteBuilder.java │ │ ├── savedsearch │ │ ├── SplunkSavedSearchClient.java │ │ └── SplunkSavedSearchRouteBuilder.java │ │ └── search │ │ ├── SplunkSearchClient.java │ │ └── SplunkSearchRouteBuilder.java │ └── resources │ ├── META-INF │ ├── LICENSE.txt │ └── NOTICE.txt │ ├── application.properties │ └── log4j2.properties ├── spring-pulsar ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── pulsar │ │ │ ├── client │ │ │ └── CamelClient.java │ │ │ ├── common │ │ │ ├── Beans.java │ │ │ └── TypeConverters.java │ │ │ └── server │ │ │ ├── Multiplier.java │ │ │ ├── ServerRoutes.java │ │ │ └── Treble.java │ └── resources │ │ ├── META-INF │ │ ├── LICENSE.txt │ │ ├── NOTICE.txt │ │ └── spring │ │ │ └── camel-server.xml │ │ ├── camel-client.xml │ │ ├── camel-common.xml │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── SpringPulsarTest.java ├── spring-xquery ├── README.adoc ├── pom.xml └── src │ ├── data │ └── message1.xml │ ├── main │ └── resources │ │ ├── META-INF │ │ ├── LICENSE.txt │ │ ├── NOTICE.txt │ │ └── spring │ │ │ └── camelContext.xml │ │ ├── broker.xml │ │ ├── log4j2.properties │ │ └── myTransform.xquery │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── SpringXQueryTest.java ├── spring ├── README.adoc ├── pom.xml └── src │ ├── data │ ├── message1.xml │ └── message2.xml │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── spring │ │ │ └── MyRouteBuilder.java │ └── resources │ │ ├── META-INF │ │ ├── LICENSE.txt │ │ ├── NOTICE.txt │ │ └── spring │ │ │ └── camel-context.xml │ │ ├── broker.xml │ │ └── log4j2.properties │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── spring │ └── IntegrationTest.java ├── telegram ├── README.adoc ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── apache │ │ └── camel │ │ └── example │ │ └── telegram │ │ ├── Application.java │ │ ├── TelegramExamplesRunner.java │ │ ├── TelegramRouteBuilder.java │ │ └── usage │ │ ├── GetUpdatesUsage.java │ │ ├── LiveLocationUsage.java │ │ ├── SendMessageUsage.java │ │ ├── SendVenueUsage.java │ │ └── TelegramMethodUsage.java │ └── resources │ └── application.properties ├── transformer-demo ├── README.adoc ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── transformer │ │ │ └── demo │ │ │ ├── Order.java │ │ │ ├── OrderProcessor.java │ │ │ ├── OrderResponse.java │ │ │ ├── OrderResponseValidator.java │ │ │ └── client │ │ │ └── CamelClient.java │ └── resources │ │ ├── META-INF │ │ ├── LICENSE.txt │ │ ├── NOTICE.txt │ │ └── spring │ │ │ └── camel-context.xml │ │ ├── log4j2.properties │ │ ├── org │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ └── transformer │ │ │ └── demo │ │ │ └── jaxb.index │ │ └── xsd │ │ └── schema.xsd │ └── test │ └── java │ └── org │ └── apache │ └── camel │ └── example │ └── transformer │ └── demo │ └── TransformerTest.java ├── vault ├── aws-secrets-manager-reloading │ ├── README.adoc │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ └── MyRouteBuilder.java │ │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties ├── aws-secrets-manager │ ├── README.adoc │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ └── MyRouteBuilder.java │ │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties ├── azure-key-vault-reloading │ ├── README.adoc │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ └── MyRouteBuilder.java │ │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties ├── google-secret-manager-reloading │ ├── README.adoc │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── camel │ │ │ └── example │ │ │ ├── MyApplication.java │ │ │ └── MyRouteBuilder.java │ │ └── resources │ │ ├── application.properties │ │ └── log4j2.properties └── pom.xml └── whatsapp ├── README.adoc ├── pom.xml └── src └── main ├── java └── org │ └── apache │ └── camel │ └── example │ └── whatsapp │ ├── Application.java │ ├── WhatsappExamplesRunner.java │ └── WhatsappRouteBuilder.java └── resources └── application.properties /.asf.yaml: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | github: 19 | description: "Apache Camel Examples" 20 | homepage: https://camel.apache.org 21 | labels: 22 | - camel 23 | - integration 24 | - java 25 | enabled_merge_buttons: 26 | merge: false 27 | rebase: true 28 | squash: true 29 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # OS specific line endings for the Maven wrapper script 2 | mvnw text eol=lf 3 | mvnw.cmd text eol=crlf 4 | 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | *.iml 3 | *.ipr 4 | *.iws 5 | .idea 6 | .DS_Store 7 | .classpath 8 | .ekstazi 9 | .project 10 | .settings 11 | .checkstyle 12 | *.log 13 | test-salesforce-login.properties 14 | dependency-reduced-pom.xml 15 | id_file 16 | components/camel-solr/data 17 | *.epoch 18 | .factorypath 19 | .pmd 20 | .sts4-cache 21 | log-camel-lsp.out 22 | .vscode 23 | *.code-workspace 24 | components/camel-cxf/activemq-data 25 | *.swp 26 | .flattened-pom.xml 27 | .java-version 28 | .camel-jbang -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | wrapperVersion=3.3.2 18 | distributionType=only-script 19 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip 20 | -------------------------------------------------------------------------------- /NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /aggregate-dist/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Persistent Aggregate 2 | 3 | === Introduction 4 | 5 | This example shows how to use Camel JDBC Aggregator optimistic locking feature 6 | in a distributed environment (multiple independent Camel Contexts). 7 | 8 | === Build and run 9 | 10 | You can build and run the example with this simple command: 11 | 12 | [source,sh] 13 | ---- 14 | $ mvn clean compile exec:java 15 | ---- 16 | 17 | === Help and contributions 18 | 19 | If you hit any problem using Camel or have some feedback, then please 20 | https://camel.apache.org/community/support/[let us know]. 21 | 22 | We also love contributors, so 23 | https://camel.apache.org/community/contributing/[get involved] :-) 24 | 25 | The Camel riders! 26 | -------------------------------------------------------------------------------- /aggregate/.gitignore: -------------------------------------------------------------------------------- 1 | data 2 | data/hawtdb.data 3 | -------------------------------------------------------------------------------- /aggregate/src/main/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /aggregate/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-aws-kcl-kinesis/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Main Endpoint DSL with AWS2 Kinesis component 2 | 3 | This example shows how to use the endpoint DSL in your Camel routes 4 | to define endpoints using type safe fluent builders, which are Java methods 5 | that are compiled. 6 | 7 | The example will poll a Kinesis Data Stream by using KCL consumers. 8 | 9 | You'll need to create the stream from your AWS console or your AWS CLI. 10 | 11 | Notice how you can configure Camel in the `application.properties` file. 12 | 13 | This example will use the AWS default credentials Provider: https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html 14 | Set your credentials accordingly. 15 | Don't forget to add the stream name. 16 | 17 | === Build 18 | 19 | First compile the example by executing: 20 | 21 | [source,sh] 22 | ---- 23 | $ mvn compile 24 | ---- 25 | 26 | === How to run 27 | 28 | You can run this example using 29 | 30 | [source,sh] 31 | ---- 32 | $ mvn camel:run 33 | ---- 34 | 35 | === Help and contributions 36 | 37 | If you hit any problem using Camel or have some feedback, then please 38 | https://camel.apache.org/community/support/[let us know]. 39 | 40 | We also love contributors, so 41 | https://camel.apache.org/community/contributing/[get involved] :-) 42 | 43 | The Camel riders! 44 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-aws-kcl-kinesis/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | # here you can configure options on camel main 19 | # https://camel.apache.org/components/next/others/main.html 20 | camel.main.name = AWS2-KCL-Kinesis 21 | 22 | # properties used in the route 23 | streamName=kcl-stream 24 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-aws-kcl-kinesis/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-aws2-s3-kafka/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Main Endpoint DSL with AWS2 S3 component to Kafka 2 | 3 | This example shows how to use the endpoint DSL in your Camel routes 4 | to define endpoints using type safe fluent builders, which are Java methods 5 | that are compiled. 6 | 7 | The example will poll an S3 bucket and send this to a Kafka topic. 8 | 9 | Notice how you can configure Camel in the `application.properties` file. 10 | 11 | This example will use the AWS default credentials Provider: https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html 12 | Set your credentials accordingly. 13 | Don't forget to add the bucket name and point to the correct topic. 14 | 15 | === Build 16 | 17 | First compile the example by executing: 18 | 19 | [source,sh] 20 | ---- 21 | $ mvn compile 22 | ---- 23 | 24 | === How to run 25 | 26 | You can run this example using 27 | 28 | [source,sh] 29 | ---- 30 | $ mvn camel:run 31 | ---- 32 | 33 | === Help and contributions 34 | 35 | If you hit any problem using Camel or have some feedback, then please 36 | https://camel.apache.org/community/support/[let us know]. 37 | 38 | We also love contributors, so 39 | https://camel.apache.org/community/contributing/[get involved] :-) 40 | 41 | The Camel riders! 42 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-aws2-s3-kafka/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | # here you can configure options on camel main 19 | # https://camel.apache.org/components/next/others/main.html 20 | camel.main.name = AWS2-S3-Consumer-to-Kafka 21 | 22 | # properties used in the route 23 | bucketName=camel-1 24 | 25 | kafkaTopic=mytopic 26 | kafkaBrokers=localhost:9092 27 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-aws2-s3-kafka/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-aws2-s3/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Main Endpoint DSL with AWS2 S3 component 2 | 3 | This example shows how to use the endpoint DSL in your Camel routes 4 | to define endpoints using type safe fluent builders, which are Java methods 5 | that are compiled. 6 | 7 | The example will poll an S3 bucket and Log the content of the file. 8 | 9 | Notice how you can configure Camel in the `application.properties` file. 10 | 11 | This example will use the AWS default credentials Provider: https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html 12 | Set your credentials accordingly. 13 | Don't forget to add the bucket name. 14 | 15 | === Build 16 | 17 | First compile the example by executing: 18 | 19 | [source,sh] 20 | ---- 21 | $ mvn compile 22 | ---- 23 | 24 | === How to run 25 | 26 | You can run this example using 27 | 28 | [source,sh] 29 | ---- 30 | $ mvn camel:run 31 | ---- 32 | 33 | === Help and contributions 34 | 35 | If you hit any problem using Camel or have some feedback, then please 36 | https://camel.apache.org/community/support/[let us know]. 37 | 38 | We also love contributors, so 39 | https://camel.apache.org/community/contributing/[get involved] :-) 40 | 41 | The Camel riders! 42 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-aws2-s3/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | # here you can configure options on camel main 19 | # https://camel.apache.org/components/next/others/main.html 20 | camel.main.name = AWS2-S3-Consumer 21 | 22 | # properties used in the route 23 | bucketName=camel 24 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-aws2-s3/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-aws2/aws2-eventbridge-creator/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Main Endpoint DSL with AWS2 S3 component 2 | 3 | This example shows how to use the endpoint DSL in your Camel routes 4 | to define endpoints using type safe fluent builders, which are Java methods 5 | that are compiled. 6 | 7 | The example will poll an S3 bucket and Log the content of the file. 8 | 9 | Notice how you can configure Camel in the `application.properties` file. 10 | 11 | Don't forget to add your AWS Credentials and the bucket name. 12 | 13 | === Build 14 | 15 | First compile the example by executing: 16 | 17 | [source,sh] 18 | ---- 19 | $ mvn compile 20 | ---- 21 | 22 | === How to run 23 | 24 | You can run this example using 25 | 26 | [source,sh] 27 | ---- 28 | $ mvn camel:run 29 | ---- 30 | 31 | === Help and contributions 32 | 33 | If you hit any problem using Camel or have some feedback, then please 34 | https://camel.apache.org/community/support/[let us know]. 35 | 36 | We also love contributors, so 37 | https://camel.apache.org/community/contributing/[get involved] :-) 38 | 39 | The Camel riders! 40 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-aws2/aws2-eventbridge-creator/src/main/resources/eventpattern.json: -------------------------------------------------------------------------------- 1 | { 2 | "source": [ 3 | "aws.s3" 4 | ], 5 | "detail": { 6 | "eventSource": [ 7 | "s3.amazonaws.com" 8 | ], 9 | "eventName": [ 10 | "DeleteBucket", 11 | "DeleteBucketCors", 12 | "DeleteBucketLifecycle", 13 | "DeleteBucketPolicy", 14 | "DeleteBucketReplication", 15 | "DeleteBucketTagging", 16 | "DeleteBucketWebsite", 17 | "CreateBucket", 18 | "PutBucketAcl", 19 | "PutBucketCors", 20 | "PutBucketLifecycle", 21 | "PutBucketPolicy", 22 | "PutBucketLogging", 23 | "PutBucketNotification", 24 | "PutBucketReplication", 25 | "PutBucketTagging", 26 | "PutBucketRequestPayment", 27 | "PutBucketVersioning", 28 | "PutBucketWebsite", 29 | "PutBucketEncryption", 30 | "DeleteBucketEncryption", 31 | "DeleteBucketPublicAccessBlock", 32 | "PutBucketPublicAccessBlock" 33 | ] 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-aws2/aws2-eventbridge-creator/src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-aws2/aws2-s3-events-inject/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Main Endpoint DSL with AWS2 S3 component 2 | 3 | This example shows how to use the endpoint DSL in your Camel routes 4 | to define endpoints using type safe fluent builders, which are Java methods 5 | that are compiled. 6 | 7 | The example will store content into an S3 bucket. 8 | 9 | Notice how you can configure Camel in the `application.properties` file. 10 | 11 | Don't forget to add your AWS Credentials and the bucket name. 12 | 13 | === Build 14 | 15 | First compile the example by executing: 16 | 17 | [source,sh] 18 | ---- 19 | $ mvn compile 20 | ---- 21 | 22 | === How to run 23 | 24 | You can run this example using 25 | 26 | [source,sh] 27 | ---- 28 | $ mvn camel:run 29 | ---- 30 | 31 | === Help and contributions 32 | 33 | If you hit any problem using Camel or have some feedback, then please 34 | https://camel.apache.org/community/support/[let us know]. 35 | 36 | We also love contributors, so 37 | https://camel.apache.org/community/contributing/[get involved] :-) 38 | 39 | The Camel riders! 40 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-aws2/aws2-s3-events-inject/src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-aws2/aws2-sqs-consumer/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Main Endpoint DSL with AWS2 SQS component 2 | 3 | This example shows how to use the endpoint DSL in your Camel routes 4 | to define endpoints using type safe fluent builders, which are Java methods 5 | that are compiled. 6 | 7 | The example will consume messages from sqs queue and log in console. 8 | 9 | Notice how you can configure Camel in the `application.properties` file. 10 | 11 | Don't forget to add your AWS Credentials and the bucket name. 12 | 13 | === Build 14 | 15 | First compile the example by executing: 16 | 17 | [source,sh] 18 | ---- 19 | $ mvn compile 20 | ---- 21 | 22 | === How to run 23 | 24 | You can run this example using 25 | 26 | [source,sh] 27 | ---- 28 | $mvn camel:run 29 | ---- 30 | 31 | === Help and contributions 32 | 33 | If you hit any problem using Camel or have some feedback, then please 34 | https://camel.apache.org/community/support/[let us know]. 35 | 36 | We also love contributors, so 37 | https://camel.apache.org/community/contributing/[get involved] :-) 38 | 39 | The Camel riders! 40 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-aws2/aws2-sqs-consumer/src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-kafka-aws2-s3-restarting-policy/data/burst.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | for (( c=1; c<=$2; c++ )) 3 | do 4 | kafkacat -P -b localhost:9092 -t $1 -p $3 $4 5 | done 6 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-kafka-aws2-s3-restarting-policy/data/msg.txt: -------------------------------------------------------------------------------- 1 | Hello 2 | 3 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-kafka-aws2-s3-restarting-policy/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-kafka-aws2-s3/data/burst.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | for (( c=1; c<=$2; c++ )) 3 | do 4 | kafkacat -P -b localhost:9092 -t $1 $3 5 | done 6 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-kafka-aws2-s3/data/msg.txt: -------------------------------------------------------------------------------- 1 | Hello 2 | 3 | -------------------------------------------------------------------------------- /aws/main-endpointdsl-kafka-aws2-s3/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /azure/azure-eventhubs/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Main Endpoint DSL with Azure Event Hubs 2 | 3 | This example shows how to use the endpoint DSL in your Camel routes 4 | to define endpoints using type safe fluent builders, which are Java methods 5 | that are compiled. 6 | 7 | The example will poll an Azure Event Hub 8 | 9 | Notice how you can configure Camel in the `application.properties` file. 10 | 11 | Don't forget to correctly set the credentials options in the application properties file 12 | 13 | === How to run 14 | 15 | You can run this example using 16 | 17 | [source,sh] 18 | ---- 19 | $ mvn camel:run 20 | ---- 21 | 22 | === Help and contributions 23 | 24 | If you hit any problem using Camel or have some feedback, then please 25 | https://camel.apache.org/community/support/[let us know]. 26 | 27 | We also love contributors, so 28 | https://camel.apache.org/community/contributing/[get involved] :-) 29 | 30 | The Camel riders! 31 | -------------------------------------------------------------------------------- /azure/azure-eventhubs/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /azure/azure-storage-blob/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Basic Example 2 | 3 | === Introduction 4 | 5 | This is a very basic example that shows how to list large azure storage blob container. 6 | 7 | This example shows you that Camel can be used in standalone mode 8 | as a _public static void main_ application. 9 | 10 | The example has only 1 java file in the `Application.java` located in the src folder. 11 | There is code comments explaining in more details. 12 | 13 | Set `ACCOUNT` & `ACCESS_KEY` & `BLOB_CONTAINER_NAME` for start example. 14 | 15 | === Build 16 | 17 | You will need to compile this example first: 18 | 19 | [source,sh] 20 | ---- 21 | $ mvn compile 22 | ---- 23 | 24 | === Run 25 | 26 | To run the example type 27 | 28 | [source,sh] 29 | ---- 30 | $ mvn camel:run 31 | ---- 32 | 33 | To stop the example hit `ctrl+c` 34 | 35 | === Help and contributions 36 | 37 | If you hit any problem using Camel or have some feedback, then please 38 | https://camel.apache.org/community/support/[let us know]. 39 | 40 | We also love contributors, so 41 | https://camel.apache.org/community/contributing/[get involved] :-) 42 | 43 | The Camel riders! 44 | -------------------------------------------------------------------------------- /azure/azure-storage-blob/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /azure/kafka-azure/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Main Example Kafka to Azure Storage Blob 2 | 3 | This example shows how to use the Camel Main module 4 | to define a route from Kafka to Azure Storage blob 5 | 6 | The example will poll one kafka topic and upload single message as blob into an Azure Storage Blob Container. 7 | 8 | Set your application.properties options correctly. 9 | You'll need also a running kafka broker. 10 | 11 | === How to run 12 | 13 | You can run this example using 14 | 15 | [source,sh] 16 | ---- 17 | $ mvn compile 18 | ---- 19 | 20 | [source,sh] 21 | ---- 22 | $ mvn camel:run 23 | ---- 24 | 25 | Now send a message to your Kafka broker direct to the Kafka topic set in application.properties 26 | 27 | You should see the container populated. 28 | 29 | === Help and contributions 30 | 31 | If you hit any problem using Camel or have some feedback, then please 32 | https://camel.apache.org/community/support/[let us know]. 33 | 34 | We also love contributors, so 35 | https://camel.apache.org/community/contributing/[get involved] :-) 36 | 37 | The Camel riders! 38 | -------------------------------------------------------------------------------- /azure/kafka-azure/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /basic/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Basic Example 2 | 3 | === Introduction 4 | 5 | This is a very basic example that shows how to get started with Camel. 6 | 7 | This example shows you that Camel can be used in standalone mode 8 | as a `_public static void main_` application. 9 | 10 | The example has only 1 java file in the link:../basic/src/main/java/org/apache/camel/example/basic/CamelBasic.java[`CamelBasic.java`] located in the src folder. 11 | There is code comments explaining in more details. 12 | 13 | === Build 14 | 15 | You will need to compile this example first: 16 | 17 | [source,sh] 18 | ---- 19 | $ mvn compile 20 | ---- 21 | 22 | === Run 23 | 24 | To run the example type 25 | 26 | [source,sh] 27 | ---- 28 | $ mvn camel:run 29 | ---- 30 | 31 | To stop the example hit `ctrl+c` 32 | 33 | You can also run the example from your editor such as Eclipse, IDEA etc, 34 | by opening the class link:../basic/src/main/java/org/apache/camel/example/basic/CamelBasic.java[org.apache.camel.example.basic.CamelBasic.java] 35 | and then right click, and chose run java application. 36 | 37 | === Help and contributions 38 | 39 | If you hit any problem using Camel or have some feedback, then please 40 | https://camel.apache.org/community/support/[let us know]. 41 | 42 | We also love contributors, so 43 | https://camel.apache.org/community/contributing/[get involved] :-) 44 | 45 | The Camel riders! 46 | -------------------------------------------------------------------------------- /basic/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /billboard-aggregate/src/test/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = %d [%20.20t] %-5p %20.20c{1} - %m%n 22 | 23 | rootLogger.level = INFO 24 | rootLogger.appenderRef.out.ref = out 25 | -------------------------------------------------------------------------------- /cafe-endpointdsl/src/main/java/org/apache/camel/example/cafe/DrinkType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example.cafe; 18 | 19 | public enum DrinkType { 20 | 21 | ESPRESSO, 22 | LATTE, 23 | CAPPUCCINO, 24 | MOCHA 25 | 26 | } 27 | 28 | -------------------------------------------------------------------------------- /cafe-endpointdsl/src/main/java/org/apache/camel/example/cafe/stuff/DrinkRouter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example.cafe.stuff; 18 | 19 | import org.apache.camel.example.cafe.OrderItem; 20 | 21 | public class DrinkRouter { 22 | 23 | public String resolveOrderItemChannel(OrderItem orderItem) { 24 | return (orderItem.isIced()) ? "seda:coldDrinks" : "seda:hotDrinks"; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /cafe-endpointdsl/src/main/java/org/apache/camel/example/cafe/stuff/OrderSplitter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example.cafe.stuff; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.camel.example.cafe.Order; 22 | import org.apache.camel.example.cafe.OrderItem; 23 | 24 | public class OrderSplitter { 25 | 26 | public List split(Order order) { 27 | return order.getItems(); 28 | } 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /cafe-endpointdsl/src/main/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /cafe-endpointdsl/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /cafe-endpointdsl/src/test/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /cafe-endpointdsl/src/test/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | 23 | rootLogger.level = INFO 24 | rootLogger.appenderRef.out.ref = out 25 | -------------------------------------------------------------------------------- /cafe/README.adoc: -------------------------------------------------------------------------------- 1 | == Cafe Example 2 | 3 | === Introduction 4 | 5 | This example shows how to work with splitter and aggregator to implement 6 | a Cafe demo. 7 | 8 | First It uses the splitter to dispatch the order, then sends the orders 9 | to barista by checking if the coffee is hot or cold. When the coffee is 10 | ready, we use an aggregator to gather the drinks for waiter to deliver. 11 | 12 | === Build 13 | 14 | You will need to compile this example first: 15 | 16 | [source,sh] 17 | ---- 18 | $ mvn compile 19 | ---- 20 | 21 | === Run 22 | 23 | To run the example type 24 | 25 | [source,sh] 26 | ---- 27 | $ mvn camel:run 28 | ---- 29 | 30 | You can see the routing rules by looking at the java code in 31 | `src/main/java`, the Spring XML configuration lives in 32 | `src/main/resources/META-INF/spring` 33 | 34 | To stop the example hit `ctrl+c` 35 | 36 | === Run unit tests 37 | 38 | There are unit tests implemented, which can be run with the following command: 39 | 40 | [source,sh] 41 | ---- 42 | $ mvn test 43 | ---- 44 | 45 | === Help and contributions 46 | 47 | If you hit any problem using Camel or have some feedback, then please 48 | https://camel.apache.org/community/support/[let us know]. 49 | 50 | We also love contributors, so 51 | https://camel.apache.org/community/contributing/[get involved] :-) 52 | 53 | The Camel riders! 54 | -------------------------------------------------------------------------------- /cafe/src/main/java/org/apache/camel/example/cafe/DrinkType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example.cafe; 18 | 19 | public enum DrinkType { 20 | 21 | ESPRESSO, 22 | LATTE, 23 | CAPPUCCINO, 24 | MOCHA 25 | 26 | } 27 | 28 | -------------------------------------------------------------------------------- /cafe/src/main/java/org/apache/camel/example/cafe/stuff/DrinkRouter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example.cafe.stuff; 18 | 19 | import org.apache.camel.example.cafe.OrderItem; 20 | 21 | public class DrinkRouter { 22 | 23 | public String resolveOrderItemChannel(OrderItem orderItem) { 24 | return (orderItem.isIced()) ? "seda:coldDrinks" : "seda:hotDrinks"; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /cafe/src/main/java/org/apache/camel/example/cafe/stuff/OrderSplitter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example.cafe.stuff; 18 | 19 | import java.util.List; 20 | 21 | import org.apache.camel.example.cafe.Order; 22 | import org.apache.camel.example.cafe.OrderItem; 23 | 24 | public class OrderSplitter { 25 | 26 | public List split(Order order) { 27 | return order.getItems(); 28 | } 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /cafe/src/main/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /cafe/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /cafe/src/test/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /cafe/src/test/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | 23 | rootLogger.level = INFO 24 | rootLogger.appenderRef.out.ref = out 25 | -------------------------------------------------------------------------------- /cassandra-kubernetes/src/main/resources/jkube/cassandra-service.yaml: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | apiVersion: v1 19 | kind: Service 20 | metadata: 21 | labels: 22 | app: cassandra 23 | name: cassandra 24 | spec: 25 | clusterIP: None 26 | ports: 27 | - port: 9042 28 | selector: 29 | app: cassandra 30 | -------------------------------------------------------------------------------- /cassandra-kubernetes/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | # 19 | # The logging properties used 20 | # 21 | appender.out.type = Console 22 | appender.out.name = out 23 | appender.out.layout.type = PatternLayout 24 | appender.out.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n 25 | rootLogger.level = INFO 26 | rootLogger.appenderRef.out.ref = out 27 | -------------------------------------------------------------------------------- /console/src/main/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /console/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /couchbase-log/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Main Example Couchbase 2 | 3 | This example shows how to use the Camel Main module 4 | to define a route from Couchbase to Log. 5 | 6 | Set your `application.properties` options correctly. 7 | You'll need also a running Couchbase server. 8 | 9 | === Setting up the Couchbase Container 10 | 11 | First run the container 12 | 13 | [source,sh] 14 | ---- 15 | docker run -d --name db -p 8091-8094:8091-8094 -p 11210:11210 couchbase:7.0.3 16 | ---- 17 | 18 | Now go to `localhost:8091` and create a new cluster with username/password admin/password 19 | 20 | Use the sample bucket beer-sample to populate the bucket. 21 | 22 | === Build 23 | 24 | You will need to compile this example first: 25 | 26 | [source,sh] 27 | ---- 28 | $ mvn compile 29 | ---- 30 | 31 | Now you're ready to run the example. 32 | 33 | === How to run 34 | 35 | You can run this example using 36 | 37 | [source,sh] 38 | ---- 39 | $ mvn camel:run 40 | ---- 41 | 42 | === Help and contributions 43 | 44 | If you hit any problem using Camel or have some feedback, then please 45 | https://camel.apache.org/community/support/[let us know]. 46 | 47 | We also love contributors, so 48 | https://camel.apache.org/community/contributing/[get involved] :-) 49 | 50 | The Camel riders! 51 | -------------------------------------------------------------------------------- /couchbase-log/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /csimple-joor/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Compiled Simple using jooR compiler 2 | 3 | This example shows using csimple (compiled simple) scripting language in your Camel routes. 4 | 5 | When Camel bootstrap then each csimple scripts is compiled using the JVM compiler via the jOOR compiler library. The compilation happens once during startup. 6 | 7 | This makes the csimple language native Java compiled, with no runtime overhead. 8 | The generated source code are in memory only and compiled at runtime. This means debugging the generated source code is not possible. See the other csimple example which uses a Maven plugin to detect csimple scripts from the source code, to generate Java source code at build time; which can be debugged. 9 | 10 | === Build 11 | 12 | You will need to compile this example first: 13 | 14 | [source,sh] 15 | ---- 16 | $ mvn compile 17 | ---- 18 | 19 | === Run 20 | 21 | To run the example execute 22 | 23 | [source,sh] 24 | ---- 25 | $ mvn camel:run 26 | ---- 27 | 28 | === Help and contributions 29 | 30 | If you hit any problem using Camel or have some feedback, then please 31 | https://camel.apache.org/community/support/[let us know]. 32 | 33 | We also love contributors, so 34 | https://camel.apache.org/community/contributing/[get involved] :-) 35 | 36 | The Camel riders! 37 | -------------------------------------------------------------------------------- /csimple-joor/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /csimple/src/generated/java/org/apache/camel/example/CSimpleScript1.java: -------------------------------------------------------------------------------- 1 | package org.apache.camel.example; 2 | 3 | import java.util.*; 4 | import java.util.concurrent.*; 5 | import java.util.stream.*; 6 | 7 | import org.apache.camel.*; 8 | import org.apache.camel.util.*; 9 | import org.apache.camel.spi.*; 10 | import static org.apache.camel.language.csimple.CSimpleHelper.*; 11 | 12 | 13 | public class CSimpleScript1 extends org.apache.camel.language.csimple.CSimpleSupport { 14 | 15 | Language bean; 16 | UuidGenerator uuid; 17 | 18 | public CSimpleScript1() { 19 | } 20 | 21 | @Override 22 | public boolean isPredicate() { 23 | return false; 24 | } 25 | 26 | @Override 27 | public String getText() { 28 | return "${random(20)}"; 29 | } 30 | 31 | @Override 32 | public Object evaluate(CamelContext context, Exchange exchange, Message message, Object body) throws Exception { 33 | return random(exchange, 0, 20); 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /csimple/src/generated/java/org/apache/camel/example/CSimpleScript2.java: -------------------------------------------------------------------------------- 1 | package org.apache.camel.example; 2 | 3 | import java.util.*; 4 | import java.util.concurrent.*; 5 | import java.util.stream.*; 6 | 7 | import org.apache.camel.*; 8 | import org.apache.camel.util.*; 9 | import org.apache.camel.spi.*; 10 | import static org.apache.camel.language.csimple.CSimpleHelper.*; 11 | 12 | 13 | public class CSimpleScript2 extends org.apache.camel.language.csimple.CSimpleSupport { 14 | 15 | Language bean; 16 | UuidGenerator uuid; 17 | 18 | public CSimpleScript2() { 19 | } 20 | 21 | @Override 22 | public boolean isPredicate() { 23 | return true; 24 | } 25 | 26 | @Override 27 | public String getText() { 28 | return "${body} > 10"; 29 | } 30 | 31 | @Override 32 | public Object evaluate(CamelContext context, Exchange exchange, Message message, Object body) throws Exception { 33 | return isGreaterThan(exchange, body, 10); 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /csimple/src/generated/java/org/apache/camel/example/CSimpleScript3.java: -------------------------------------------------------------------------------- 1 | package org.apache.camel.example; 2 | 3 | import java.util.*; 4 | import java.util.concurrent.*; 5 | import java.util.stream.*; 6 | 7 | import org.apache.camel.*; 8 | import org.apache.camel.util.*; 9 | import org.apache.camel.spi.*; 10 | import static org.apache.camel.language.csimple.CSimpleHelper.*; 11 | 12 | 13 | public class CSimpleScript3 extends org.apache.camel.language.csimple.CSimpleSupport { 14 | 15 | Language bean; 16 | UuidGenerator uuid; 17 | 18 | public CSimpleScript3() { 19 | } 20 | 21 | @Override 22 | public boolean isPredicate() { 23 | return true; 24 | } 25 | 26 | @Override 27 | public String getText() { 28 | return "${body} > 5"; 29 | } 30 | 31 | @Override 32 | public Object evaluate(CamelContext context, Exchange exchange, Message message, Object body) throws Exception { 33 | return isGreaterThan(exchange, body, 5); 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /csimple/src/generated/resources/META-INF/services/org/apache/camel/csimple.properties: -------------------------------------------------------------------------------- 1 | # Generated by camel build tools - do NOT edit this file! 2 | org.apache.camel.example.CSimpleScript1 3 | org.apache.camel.example.CSimpleScript2 4 | org.apache.camel.example.CSimpleScript3 5 | -------------------------------------------------------------------------------- /csimple/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /debezium-eventhubs-blob/.gitignore: -------------------------------------------------------------------------------- 1 | *.data -------------------------------------------------------------------------------- /debezium-eventhubs-blob/src/main/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /debezium-eventhubs-blob/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /debezium/.gitignore: -------------------------------------------------------------------------------- 1 | *.data -------------------------------------------------------------------------------- /debezium/src/main/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /debezium/src/test/resources/org/apache/camel/example/debezium/db-init.cql: -------------------------------------------------------------------------------- 1 | CREATE KEYSPACE dbzSink WITH replication = {'class':'SimpleStrategy', 'replication_factor' : 1}; 2 | 3 | USE dbzSink; 4 | 5 | CREATE TABLE products ( 6 | id int PRIMARY KEY, 7 | name varchar, 8 | description varchar, 9 | weight float 10 | ); -------------------------------------------------------------------------------- /flight-recorder/.gitignore: -------------------------------------------------------------------------------- 1 | *.jfr -------------------------------------------------------------------------------- /flight-recorder/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /ftp/src/main/java/org/apache/camel/example/ftp/MyFtpClient.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example.ftp; 18 | 19 | import org.apache.camel.main.Main; 20 | 21 | /** 22 | * Main class that can upload files to an existing FTP server. 23 | */ 24 | public final class MyFtpClient { 25 | 26 | private MyFtpClient() { 27 | } 28 | 29 | public static void main(String[] args) throws Exception { 30 | Main main = new Main(MyFtpClient.class); 31 | main.run(); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /ftp/src/main/java/org/apache/camel/example/ftp/MyFtpServer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example.ftp; 18 | 19 | import org.apache.camel.main.Main; 20 | 21 | /** 22 | * Main class that can download files from an existing FTP server. 23 | */ 24 | public final class MyFtpServer { 25 | 26 | private MyFtpServer() { 27 | } 28 | 29 | public static void main(String[] args) throws Exception { 30 | Main main = new Main(MyFtpServer.class); 31 | main.run(); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /ftp/src/main/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /ftp/src/test/resources/users.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | ftpserver.user.admin 19 | ftpserver.user.admin.userpassword=admin 20 | ftpserver.user.admin.homedirectory=./target/ftp-server 21 | ftpserver.user.admin.writepermission=true 22 | -------------------------------------------------------------------------------- /google/README.adoc: -------------------------------------------------------------------------------- 1 | = Welcome to the Apache Camel Examples 2 | 3 | == Introduction 4 | 5 | This directory contains examples for Camel Google cloud components. 6 | View the individual example READMEs for details. 7 | 8 | == Examples 9 | 10 | [width="100%",cols="4,2,4",options="header"] 11 | |=== 12 | | Example | Category | Description 13 | 14 | 15 | | link:google-pubsub/README.adoc[Google Pubsub] (google-pubsub) | Cloud | Google Pubsub example 16 | 17 | |=== 18 | 19 | == Help and contributions 20 | 21 | If you hit any problem using Camel or have some feedback, 22 | then please https://camel.apache.org/community/support/[let us know]. 23 | 24 | We also love contributors, 25 | so https://camel.apache.org/community/contributing/[get involved] :-) 26 | 27 | The Camel riders! 28 | -------------------------------------------------------------------------------- /google/google-pubsub/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Main Endpoint DSL with Google Pubsub 2 | 3 | This example shows how to use the endpoint DSL in your Camel routes 4 | to define endpoints using type safe fluent builders, which are Java methods 5 | that are compiled. 6 | 7 | The example will publish messages to Google Cloud PubSub topic and consume them from the affiliated subscription 8 | 9 | Notice how you can configure Camel in the `application.properties` file. 10 | 11 | Don't forget to correctly set the credentials options in the application properties file 12 | 13 | === How to run 14 | 15 | You can run this example using 16 | 17 | [source,sh] 18 | ---- 19 | $ mvn camel:run 20 | ---- 21 | 22 | === Help and contributions 23 | 24 | If you hit any problem using Camel or have some feedback, then please 25 | https://camel.apache.org/community/support/[let us know]. 26 | 27 | We also love contributors, so 28 | https://camel.apache.org/community/contributing/[get involved] :-) 29 | 30 | The Camel riders! 31 | -------------------------------------------------------------------------------- /google/google-pubsub/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | # here you can configure options on camel main 19 | # https://camel.apache.org/components/next/others/main.html 20 | camel.main.name = Google-PubSub 21 | 22 | # properties used in the route 23 | 24 | serviceAccountKey=base64:xxxx 25 | projectId=xxxx 26 | topicName=xxxx 27 | subscriptionName=xxxx 28 | -------------------------------------------------------------------------------- /google/google-pubsub/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /hazelcast-kubernetes/src/main/resources/fabric8/hazelcast-service.yaml: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | apiVersion: v1 19 | kind: Service 20 | metadata: 21 | labels: 22 | name: hazelcast 23 | name: hazelcast 24 | spec: 25 | ports: 26 | - port: 5701 27 | selector: 28 | name: hazelcast 29 | -------------------------------------------------------------------------------- /java-lambda/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Java 8 2 | 3 | === Introduction 4 | 5 | This example shows how to use Java 8 new features, such as lambda expressions and method references, in the definition of a Camel route. 6 | 7 | === Build 8 | 9 | You will need to compile this example first: 10 | 11 | [source,sh] 12 | ---- 13 | $ mvn compile 14 | ---- 15 | 16 | === Run 17 | 18 | To run the example execute 19 | 20 | [source,sh] 21 | ---- 22 | $ mvn camel:run 23 | ---- 24 | 25 | === Help and contributions 26 | 27 | If you hit any problem using Camel or have some feedback, then please 28 | https://camel.apache.org/community/support/[let us know]. 29 | 30 | We also love contributors, so 31 | https://camel.apache.org/community/contributing/[get involved] :-) 32 | 33 | The Camel riders! 34 | -------------------------------------------------------------------------------- /java-lambda/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /jdbc/src/main/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /jdbc/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /jmx/README.adoc: -------------------------------------------------------------------------------- 1 | == JMX Example 2 | 3 | === Introduction 4 | 5 | This example shows how to work with the Camel-JMX component. 6 | 7 | The example creates a simple MBean, registers a route to listen for 8 | notification events on that bean and creates another route that calls 9 | the MBean. 10 | 11 | === Build 12 | 13 | You will need to compile this example first: 14 | 15 | [source,shh] 16 | ---- 17 | $ mvn compile 18 | ---- 19 | 20 | === Compile 21 | 22 | To run the example type 23 | 24 | [source,sh] 25 | ---- 26 | $ mvn camel:run 27 | ---- 28 | 29 | You can see the routing rules by looking at the java code in the 30 | `+src/main/java+` directory and the Spring XML configuration lives in 31 | `+src/main/resources/META-INF/spring+` 32 | 33 | To stop the example hit ctrl+c 34 | 35 | === Help and contributions 36 | 37 | If you hit any problem using Camel or have some feedback, then please 38 | https://camel.apache.org/community/support/[let us know]. 39 | 40 | We also love contributors, so 41 | https://camel.apache.org/community/contributing/[get involved] :-) 42 | 43 | The Camel riders! 44 | -------------------------------------------------------------------------------- /jmx/src/main/java/org/apache/camel/example/jmx/ISimpleMXBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example.jmx; 18 | 19 | import java.io.Serializable; 20 | 21 | /** 22 | * Interface defining the POJO 23 | */ 24 | public interface ISimpleMXBean extends Serializable { 25 | 26 | void tick() throws Exception; 27 | 28 | } 29 | -------------------------------------------------------------------------------- /jmx/src/main/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /jmx/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.stdout.type = Console 19 | appender.stdout.name = stdout 20 | appender.stdout.layout.type = PatternLayout 21 | appender.stdout.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.stdout.ref = stdout 24 | -------------------------------------------------------------------------------- /jooq/src/main/resources/config.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | #Database Configuration 18 | db.driver=org.hsqldb.jdbcDriver 19 | db.url=jdbc:hsqldb:file:${basedir}/target/db;shutdown=true 20 | db.pool.maxActive=50 21 | db.pool.maxIdle=20 22 | db.username=sa 23 | db.password= 24 | 25 | #jOOQ Configuration 26 | jooq.sql.dialect=HSQLDB 27 | -------------------------------------------------------------------------------- /jooq/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.stdout.type = Console 19 | appender.stdout.name = stdout 20 | appender.stdout.layout.type = PatternLayout 21 | appender.stdout.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.stdout.ref = stdout -------------------------------------------------------------------------------- /kafka/src/main/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /kafka/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /kamelet-chucknorris/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Kamelet Chuck Norris 2 | 3 | === Introduction 4 | 5 | This example shows how you can build a simple Kamelet and use with your Camel applications. 6 | 7 | The Kamelet is created as a YAML file in the `src/main/resources/kamelets' directory. 8 | We have developed a Chuck Norris Kamelet that periodically gets a joke from the Chuck Norris internet database. 9 | 10 | A Camel routes is _coded_ in the `my-route.xml` file using the XML DSL that uses the Kamelet, 11 | and log the result from the Kamelet to the console. 12 | 13 | === Build 14 | 15 | You will need to compile this example first: 16 | 17 | [source,sh] 18 | ---- 19 | $ mvn compile 20 | ---- 21 | 22 | === Run 23 | 24 | You can run this example using 25 | 26 | [source,sh] 27 | ---- 28 | $ mvn camel:run 29 | ---- 30 | 31 | === Help and contributions 32 | 33 | If you hit any problem using Camel or have some feedback, then please 34 | https://camel.apache.org/community/support/[let us know]. 35 | 36 | We also love contributors, so 37 | https://camel.apache.org/community/contributing/[get involved] :-) 38 | 39 | The Camel riders! 40 | -------------------------------------------------------------------------------- /kamelet-chucknorris/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | # here you can configure options on camel main 19 | # https://camel.apache.org/components/next/others/main.html 20 | camel.main.name = MyKameletCamel 21 | 22 | # routes to load 23 | camel.main.routes-include-pattern = camel/*.xml 24 | 25 | -------------------------------------------------------------------------------- /kamelet-chucknorris/src/main/resources/camel/my-route.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /kamelet-chucknorris/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /kamelet-main/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | # to configure camel main 19 | camel.main.name = MyEarthQuake 20 | 21 | 22 | -------------------------------------------------------------------------------- /kamelet-main/src/main/resources/camel/my-route.camel.yaml: -------------------------------------------------------------------------------- 1 | - route: 2 | id: "earthquake" 3 | from: 4 | uri: "kamelet:earthquake-source" 5 | steps: 6 | - unmarshal: 7 | json: {} 8 | - log: "Earthquake with magnitude ${body[properties][mag]} at ${body[properties][place]}" 9 | -------------------------------------------------------------------------------- /kamelet-main/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /kamelet-sql/script/populate.sql: -------------------------------------------------------------------------------- 1 | do $$ 2 | BEGIN 3 | for r in 1..30000 loop 4 | INSERT into accounts (username,city) VALUES ('John', 'New York'); 5 | END loop; 6 | END; 7 | $$; 8 | -------------------------------------------------------------------------------- /kamelet-sql/script/table.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE accounts ( user_id serial PRIMARY KEY, username VARCHAR ( 50 ) NOT NULL, city VARCHAR ( 50 ) NOT NULL); 2 | -------------------------------------------------------------------------------- /kamelet-sql/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | # to configure camel main 19 | camel.main.name = postgresql-source-kamelet 20 | 21 | camel.vault.aws.accessKey= 22 | camel.vault.aws.secretKey= 23 | camel.vault.aws.region= 24 | -------------------------------------------------------------------------------- /kamelet-sql/src/main/resources/camel/my-route.camel.yaml: -------------------------------------------------------------------------------- 1 | - route: 2 | id: "sql" 3 | from: 4 | uri: "kamelet:postgresql-source" 5 | parameters: 6 | serverName: "{{aws:postgresql/host}}" 7 | username: "{{aws:postgresql/username}}" 8 | password: "{{aws:postgresql/password}}" 9 | query: 'SELECT * FROM accounts' 10 | port: "{{aws:postgresql/port}}" 11 | databaseName: "{{aws:postgresql/dbname}}" 12 | consumedQuery: 'delete from accounts where user_id = :#user_id' 13 | steps: 14 | - to: 15 | uri: "kamelet:log-sink" 16 | -------------------------------------------------------------------------------- /kamelet-sql/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /kamelet/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Kamelet 2 | 3 | === Introduction 4 | 5 | This examples shows how to use Route Templates (parameterized routes) to specify a skeleton route 6 | which can be used for creating and adding new routes via Kamelets. 7 | 8 | The route template is defined via Java in the `MyRouteTemplates.java` source file. 9 | The routes are defined via Java in the `MyRoutes.java` source file. 10 | 11 | The example runs standalone via Camel Main in the `MyApplication.java` source file. 12 | 13 | === Build 14 | 15 | You will need to compile this example first: 16 | 17 | [source,sh] 18 | ---- 19 | $ mvn compile 20 | ---- 21 | 22 | === Run 23 | 24 | You can run this example using 25 | 26 | [source,sh] 27 | ---- 28 | $ mvn camel:run 29 | ---- 30 | 31 | === Help and contributions 32 | 33 | If you hit any problem using Camel or have some feedback, then please 34 | https://camel.apache.org/community/support/[let us know]. 35 | 36 | We also love contributors, so 37 | https://camel.apache.org/community/contributing/[get involved] :-) 38 | 39 | The Camel riders! 40 | -------------------------------------------------------------------------------- /kamelet/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | # here you can configure options on camel main 19 | # https://camel.apache.org/components/next/others/main.html 20 | camel.main.name = MyCoolCamel 21 | -------------------------------------------------------------------------------- /kamelet/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /loadbalancing/src/main/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /loadbalancing/src/main/resources/META-INF/spring/camel-route-template-mina.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | {{host}} 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /loadbalancing/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.stdout.type = Console 19 | appender.stdout.name = stdout 20 | appender.stdout.layout.type = PatternLayout 21 | appender.stdout.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.stdout.ref = stdout 24 | -------------------------------------------------------------------------------- /main-endpointdsl/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Main Endpoint DSL 2 | 3 | This example shows how to use the endpoint DSL in your Camel routes 4 | to define endpoints using type safe fluent builders, which are Java methods 5 | that are compiled. 6 | 7 | Notice how you can configure Camel in the `application.properties` file. 8 | 9 | === Build 10 | 11 | First compile the example by executing: 12 | 13 | [source,sh] 14 | ---- 15 | $ mvn compile 16 | ---- 17 | 18 | === How to run 19 | 20 | You can run this example using 21 | 22 | [source,sh] 23 | ---- 24 | $ mvn camel:run 25 | ---- 26 | 27 | === Help and contributions 28 | 29 | If you hit any problem using Camel or have some feedback, then please 30 | https://camel.apache.org/community/support/[let us know]. 31 | 32 | We also love contributors, so 33 | https://camel.apache.org/community/contributing/[get involved] :-) 34 | 35 | The Camel riders! 36 | -------------------------------------------------------------------------------- /main-endpointdsl/src/main/java/org/apache/camel/example/MyBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example; 18 | 19 | public class MyBean { 20 | 21 | private String hi; 22 | private int counter; 23 | 24 | public String getHi() { 25 | return hi; 26 | } 27 | 28 | public void setHi(String hi) { 29 | this.hi = hi; 30 | } 31 | 32 | public String hello() { 33 | return hi + " how are you? I am called " + ++counter + " times"; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /main-endpointdsl/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /main-health/src/main/resources/META-INF/services/org/apache/camel/health-check/monkey-check: -------------------------------------------------------------------------------- 1 | # Generated by camel build tools - do NOT edit this file! 2 | class=org.apache.camel.example.MonkeyHealthCheck 3 | -------------------------------------------------------------------------------- /main-health/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /main-joor/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Main jOOR 2 | 3 | This example shows using the new jOOR language in the Camel DSL. 4 | The jOOR language is very performant, as it is compiled once to Java code during startup (runtime). 5 | 6 | === Build 7 | 8 | First compile the example by executing: 9 | 10 | [source,sh] 11 | ---- 12 | $ mvn compile 13 | ---- 14 | 15 | === How to run 16 | 17 | You can run this example using 18 | 19 | ---- 20 | $ mvn camel:run 21 | ---- 22 | 23 | === Help and contributions 24 | 25 | If you hit any problem using Camel or have some feedback, then please 26 | https://camel.apache.org/community/support/[let us know]. 27 | 28 | We also love contributors, so 29 | https://camel.apache.org/community/contributing/[get involved] :-) 30 | 31 | The Camel riders! 32 | -------------------------------------------------------------------------------- /main-joor/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | # here you can configure options on camel main 19 | # https://camel.apache.org/components/next/others/main.html 20 | camel.main.name = MyCamel 21 | 22 | # properties used in the route 23 | myPeriod = 2s 24 | 25 | -------------------------------------------------------------------------------- /main-joor/src/main/resources/camel-joor.properties: -------------------------------------------------------------------------------- 1 | # import our user so joor language can use the shorthand classname 2 | import org.apache.camel.example.MyUser; 3 | -------------------------------------------------------------------------------- /main-joor/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /main-lambda/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Main Lambda 2 | 3 | This example demonstrates how to use `LambdaRouteBuilder` as a way of defining Camel routes 4 | using lambda style. 5 | 6 | [source,java] 7 | ---- 8 | rb -> rb.from("timer:foo").log("Hello Lambda"); 9 | ---- 10 | 11 | The `LambdaRouteBuilder` is a functional interface that makes defining routes with lambda style 12 | easy. All you need to do is to create a method that returns `LambdaRouteBuilder` and mark 13 | the method with `@BindToRegistry` or if using Spring Boot `@Bean` or `@Produce` for CDI/Quarkus. 14 | 15 | See the `MyConfiguration.java` for the configuration and Camel routes are set up. 16 | 17 | Multiple routes can be defined by having multiple methods. 18 | 19 | === Build 20 | 21 | First compile the example by executing: 22 | 23 | [source,sh] 24 | ---- 25 | $ mvn compile 26 | ---- 27 | 28 | === How to run 29 | 30 | You can run this example using 31 | 32 | ---- 33 | $ mvn camel:run 34 | ---- 35 | 36 | === Help and contributions 37 | 38 | If you hit any problem using Camel or have some feedback, then please 39 | https://camel.apache.org/community/support/[let us know]. 40 | 41 | We also love contributors, so 42 | https://camel.apache.org/community/contributing/[get involved] :-) 43 | 44 | The Camel riders! 45 | -------------------------------------------------------------------------------- /main-lambda/src/main/java/org/apache/camel/example/MyBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example; 18 | 19 | public class MyBean { 20 | 21 | private String hi; 22 | private String bye; 23 | 24 | public MyBean(String hi, String bye) { 25 | this.hi = hi; 26 | this.bye = bye; 27 | } 28 | 29 | public String hello() { 30 | return hi + " how are you?"; 31 | } 32 | 33 | public String bye() { 34 | return bye + " World"; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /main-lambda/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /main-micrometer/src/main/resources/camel/demo.camel.yaml: -------------------------------------------------------------------------------- 1 | - route: 2 | from: 3 | uri: timer 4 | parameters: 5 | timerName: timer1 6 | delay: '1000' 7 | period: '5000' 8 | steps: 9 | - setBody: 10 | expression: 11 | constant: 12 | expression: Hello 13 | - to: 14 | uri: direct 15 | parameters: 16 | name: echo 17 | - log: 18 | message: ${body} 19 | - route: 20 | from: 21 | uri: direct 22 | parameters: 23 | name: echo 24 | steps: 25 | - setBody: 26 | simple: '${body}${body}' 27 | - route: 28 | from: 29 | uri: direct 30 | parameters: 31 | name: bye 32 | steps: 33 | - setBody: 34 | constant: 'BYE WORLD' 35 | - log: 36 | message: ${body} 37 | - rest: 38 | get: 39 | - path: /bye 40 | to: direct:bye 41 | -------------------------------------------------------------------------------- /main-micrometer/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /main-tiny/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Main Tiny 2 | 3 | The example uses the `camel-core-engine` as dependency to use as few JARs 4 | on the classpath as possible. For more details see the `pom.xml` file. 5 | 6 | This example shows how to run Camel standalone via the built-in Main class. 7 | 8 | Notice how you can configure Camel in the `application.properties` file. 9 | 10 | === Build 11 | 12 | First compile the example by executing: 13 | 14 | [source,sh] 15 | ---- 16 | $ mvn compile 17 | ---- 18 | 19 | === How to run 20 | 21 | You can run this example using 22 | 23 | ---- 24 | $ mvn camel:run 25 | ---- 26 | 27 | === Help and contributions 28 | 29 | If you hit any problem using Camel or have some feedback, then please 30 | https://camel.apache.org/community/support/[let us know]. 31 | 32 | We also love contributors, so 33 | https://camel.apache.org/community/contributing/[get involved] :-) 34 | 35 | The Camel riders! 36 | -------------------------------------------------------------------------------- /main-tiny/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.example.MyBean: -------------------------------------------------------------------------------- 1 | # Generated by camel build tools - do NOT edit this file! 2 | class=org.apache.camel.example.MyBeanConfigurer 3 | -------------------------------------------------------------------------------- /main-tiny/src/main/java/org/apache/camel/example/MyBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example; 18 | 19 | import org.apache.camel.spi.Configurer; 20 | 21 | @Configurer 22 | public class MyBean { 23 | 24 | private String hi; 25 | 26 | public String getHi() { 27 | return hi; 28 | } 29 | 30 | public void setHi(String hi) { 31 | this.hi = hi; 32 | } 33 | 34 | public String hello() { 35 | return hi + " how are you?"; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /main-tiny/src/main/java/org/apache/camel/example/MyRouteBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example; 18 | 19 | import org.apache.camel.builder.RouteBuilder; 20 | 21 | public class MyRouteBuilder extends RouteBuilder { 22 | 23 | @Override 24 | public void configure() throws Exception { 25 | from("timer:foo?period={{myPeriod}}") 26 | .bean("myBean", "hello") 27 | .log("${body}"); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /main-tiny/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /main-xml/src/main/java/org/apache/camel/example/MyBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example; 18 | 19 | public class MyBean { 20 | 21 | private String hi; 22 | private String bye; 23 | 24 | public MyBean(String hi, String bye) { 25 | this.hi = hi; 26 | this.bye = bye; 27 | } 28 | 29 | public String hello() { 30 | return hi + " how are you?"; 31 | } 32 | 33 | public String bye() { 34 | return bye + " World"; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /main-xml/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /main-xml/src/main/resources/routes/my-route.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /main-yaml/src/main/java/org/apache/camel/example/MyBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example; 18 | 19 | public class MyBean { 20 | 21 | private String hi; 22 | private String bye; 23 | 24 | public MyBean(String hi, String bye) { 25 | this.hi = hi; 26 | this.bye = bye; 27 | } 28 | 29 | public String hello() { 30 | return hi + " how are you?"; 31 | } 32 | 33 | public String bye() { 34 | return bye + " World"; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /main-yaml/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /main-yaml/src/main/resources/routes/my-route.camel.yaml: -------------------------------------------------------------------------------- 1 | # --------------------------------------------------------------------------- 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # --------------------------------------------------------------------------- 17 | 18 | - route: 19 | id: "foo" 20 | from: 21 | uri: "quartz:foo?cron={{myCron}}" 22 | steps: 23 | - to: "bean:myBean?method=hello" 24 | - log: "${body}" 25 | - to: "bean:myBean?method=bye" 26 | - log: "${body}" 27 | -------------------------------------------------------------------------------- /main/src/main/java/org/apache/camel/example/MyBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example; 18 | 19 | public class MyBean { 20 | 21 | private String hi; 22 | 23 | public MyBean(String hi) { 24 | this.hi = hi; 25 | } 26 | 27 | public String hello() { 28 | return hi + " how are you?"; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /main/src/main/java/org/apache/camel/example/MyRouteBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example; 18 | 19 | import org.apache.camel.builder.RouteBuilder; 20 | 21 | public class MyRouteBuilder extends RouteBuilder { 22 | 23 | @Override 24 | public void configure() throws Exception { 25 | from("timer:foo").routeId("foo") 26 | .bean("myBean", "hello") 27 | .log("${body}"); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /main/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /mapstruct/src/main/java/org/apache/camel/example/MyBeanEnricher.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example; 18 | 19 | import org.apache.camel.example.model.Beverage; 20 | 21 | public class MyBeanEnricher { 22 | 23 | public void enrich(Beverage bev) { 24 | // we can also use regular Java to modify the pojo 25 | bev.setCategory("beer"); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /mapstruct/src/main/java/org/apache/camel/example/mapper/BeerMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example.mapper; 18 | 19 | import org.apache.camel.example.model.Beer; 20 | import org.apache.camel.example.model.Beverage; 21 | import org.mapstruct.Mapper; 22 | import org.mapstruct.Mapping; 23 | 24 | @Mapper 25 | public interface BeerMapper { 26 | 27 | @Mapping(source = "style", target = "category") 28 | @Mapping(source = "alcohol", target = "strength") 29 | Beverage toBeverage(Beer beer); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /mapstruct/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | # here you can configure options on camel main 19 | # https://camel.apache.org/components/next/others/main.html 20 | camel.main.name = BeerCamel 21 | 22 | # configure camel-mapstruct 23 | camel.component.mapstruct.mapper-package-name = org.apache.camel.example.mapper 24 | -------------------------------------------------------------------------------- /mapstruct/src/main/resources/documents/beer.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": 2060, 3 | "uid": "64b36188-ac50-436f-9804-286828459aac", 4 | "brand": "Birra Moretti", 5 | "name": "Sierra Nevada Celebration Ale", 6 | "style": "English Brown Ale", 7 | "hop": "Nugget", 8 | "yeast": "3763 - Roeselare Ale Blend", 9 | "malts": "Carapils", 10 | "ibu": "92 IBU", 11 | "alcohol": "5.3%", 12 | "blg": "12.8°Blg" 13 | } -------------------------------------------------------------------------------- /mapstruct/src/main/resources/documents/beverage.json: -------------------------------------------------------------------------------- 1 | { 2 | "kind": "beer", 3 | "name": "Sierra Nevada Celebration Ale", 4 | "category": "English Brown Ale", 5 | "strength": "5.3%" 6 | } -------------------------------------------------------------------------------- /mapstruct/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /minio/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /netty-custom-correlation/src/main/java/org/apache/camel/example/netty/MyCodecDecoderFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example.netty; 18 | 19 | import io.netty.channel.ChannelHandler; 20 | import org.apache.camel.component.netty.DefaultChannelHandlerFactory; 21 | 22 | public class MyCodecDecoderFactory extends DefaultChannelHandlerFactory { 23 | 24 | @Override 25 | public ChannelHandler newChannelHandler() { 26 | return new MyCodecDecoder(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /netty-custom-correlation/src/main/java/org/apache/camel/example/netty/MyCodecEncoderFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example.netty; 18 | 19 | import io.netty.channel.ChannelHandler; 20 | import org.apache.camel.component.netty.DefaultChannelHandlerFactory; 21 | 22 | public class MyCodecEncoderFactory extends DefaultChannelHandlerFactory { 23 | 24 | @Override 25 | public ChannelHandler newChannelHandler() { 26 | return new MyCodecEncoder(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /netty-custom-correlation/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /resume-api/README.md: -------------------------------------------------------------------------------- 1 | Resume API Examples 2 | ========================= 3 | 4 | This module contains examples for the resume API. 5 | 6 | * resume-api-common: common code used for all the resume API examples 7 | * resume-api-file-offset: an example that shows how to use the Resume API for processing large files 8 | * resume-api-fileset: an example that shows how to use the Resume API for processing a large directory 9 | * resume-api-fileset-wal: an example that shows how to use the Resume API with the Write Ahead Log for processing a large directory 10 | -------------------------------------------------------------------------------- /resume-api/resume-api-common/src/main/java/org/apache/camel/example/resume/strategies/kafka/check/CheckRoute.java: -------------------------------------------------------------------------------- 1 | package org.apache.camel.example.resume.strategies.kafka.check; 2 | 3 | import org.apache.camel.builder.RouteBuilder; 4 | 5 | public class CheckRoute extends RouteBuilder { 6 | 7 | @Override 8 | public void configure() { 9 | from("kafka:{{resume.type.kafka.topic}}?brokers={{bootstrap.address}}&maxBlockMs=5000&pollTimeoutMs=1000") 10 | .to("file:{{output.dir}}?fileName=summary.txt&fileExist=Append&appendChars=\n"); 11 | } 12 | 13 | 14 | } 15 | -------------------------------------------------------------------------------- /resume-api/resume-api-fileset-wal/src/main/scripts/noop.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | echo "Use the terminal to run the demo" 19 | while true ; do sleep 60s ; done 20 | -------------------------------------------------------------------------------- /resume-api/resume-api-fileset/README.md: -------------------------------------------------------------------------------- 1 | Resume API Example: File Set 2 | ========================= 3 | 4 | This example shows how to use the Resume API for processing a large directory. It uses the file component to read a large directory and subdirectories, consisting of about 500 files. The processing reads a batch of 50 files and then stop. Then, when it restarts, it continues from the last file it processed in the previous execution. The offsets are stored in a Kafka topic. 5 | 6 | 7 | *Note*: this demo runs in a container. Although it is possible to run it outside a container, doing so requires additional infrastructure. Therefore, it's not covered by the documentation. 8 | 9 | *Note 2*: the code is deliberately slowed down for a better display of the execution. 10 | 11 | Building the demo 12 | === 13 | 14 | To build the demo and the containers: 15 | 16 | ```shell 17 | mvn clean package && docker compose build 18 | ``` 19 | 20 | Run 21 | === 22 | 23 | To run the demo: 24 | 25 | ```shell 26 | docker compose up -d && docker compose logs --no-log-prefix -f example ; docker compose down 27 | ``` 28 | -------------------------------------------------------------------------------- /routeloader/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /routeloader/src/main/resources/myroutes/cheese-route.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /routes-configuration/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Routes Configuration 2 | 3 | This example shows how Camel is capable of loading routes during startup using the new route loader system. 4 | The route loader has support for loading routes in XML, Java and YAML (other languages to be added). 5 | 6 | In this example the focus is on how you can use global _routes configuration_ with the DSL to separate 7 | error handling (and other cross routes functionality) from all your routes. 8 | 9 | This example has one route in Java, XML and YAML. Each of those routes refer to a 10 | specific route configuration, which is also _coded_ in the same language as the route. 11 | But this is not required, you can use Java to code your route configurations for 12 | advanced error handling, and then _code_ your routes in other languages such as XML or YAML. 13 | 14 | === Build 15 | 16 | You will need to compile this example first: 17 | 18 | ---- 19 | $ mvn compile 20 | ---- 21 | 22 | === How to run 23 | 24 | You can run this example using 25 | 26 | ---- 27 | $ mvn camel:run 28 | ---- 29 | 30 | === Help and contributions 31 | 32 | If you hit any problem using Camel or have some feedback, then please 33 | https://camel.apache.org/community/support/[let us know]. 34 | 35 | We also love contributors, so 36 | https://camel.apache.org/community/contributing/[get involved] :-) 37 | 38 | The Camel riders! 39 | -------------------------------------------------------------------------------- /routes-configuration/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /routes-configuration/src/main/resources/myerror/xml-error.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | java.lang.Exception 24 | true 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /routetemplate-xml/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Route Template in XML 2 | 3 | This examples shows how to use Route Templates (parameterized routes) to specify a skeleton route 4 | which can be used for creating and adding new routes via parameters in pure XML. 5 | 6 | The route template is defined via XML DSL (RouteBuilder) in the resource `templates/my-route-templates.xml`. 7 | 8 | The resource `builders/my-template-builder.xml` is used to create two routes from the template using different set of parameters by leveraging the XML DSL. 9 | 10 | The example runs standalone via Camel Main in the `MyApplication.java` source file. 11 | 12 | === Build 13 | 14 | You will need to compile this example first: 15 | 16 | ---- 17 | $ mvn compile 18 | ---- 19 | 20 | === How to run 21 | 22 | You can run this example using 23 | 24 | ---- 25 | $ mvn camel:run 26 | ---- 27 | 28 | === Help and contributions 29 | 30 | If you hit any problem using Camel or have some feedback, then please 31 | https://camel.apache.org/community/support/[let us know]. 32 | 33 | We also love contributors, so 34 | https://camel.apache.org/community/contributing/[get involved] :-) 35 | 36 | The Camel riders! 37 | -------------------------------------------------------------------------------- /routetemplate-xml/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | # to configure camel main 19 | # here you can configure options on camel main (see MainConfigurationProperties class) 20 | camel.main.name = MyRootTemplateInXML 21 | -------------------------------------------------------------------------------- /routetemplate-xml/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /routetemplate/README.adoc: -------------------------------------------------------------------------------- 1 | == Camel Example Route Template 2 | 3 | This examples shows how to use Route Templates (parameterized routes) to specify a skeleton route 4 | which can be used for creating and adding new routes via parameters. 5 | 6 | The route template is defined via Java or XML DSL (RouteBuilder) in the `MyRouteTemplates.java` source file. 7 | 8 | The `application.properties` is used to create two routes from the template using different set of parameters. 9 | 10 | An alternative to create routes is from Java which is done in the `MyTemplateBuilder.java` class thanks to the Java DSL. 11 | See the `MyApplication.java` where you can change the source to use java instead of property file for the template parameters. 12 | 13 | The example runs standalone via Camel Main in the `MyApplication.java` source file. 14 | 15 | === Build 16 | 17 | You will need to compile this example first: 18 | 19 | ---- 20 | $ mvn compile 21 | ---- 22 | 23 | === How to run 24 | 25 | You can run this example using 26 | 27 | ---- 28 | $ mvn camel:run 29 | ---- 30 | 31 | === Help and contributions 32 | 33 | If you hit any problem using Camel or have some feedback, then please 34 | https://camel.apache.org/community/support/[let us know]. 35 | 36 | We also love contributors, so 37 | https://camel.apache.org/community/contributing/[get involved] :-) 38 | 39 | The Camel riders! 40 | -------------------------------------------------------------------------------- /routetemplate/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /salesforce-consumer/src/main/resources/simplelogger.properties: -------------------------------------------------------------------------------- 1 | org.slf4j.simpleLogger.log.org.apache.camel=info 2 | 3 | -------------------------------------------------------------------------------- /splunk/src/main/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /splunk/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | splunk.host=localhost 19 | splunk.port=8089 20 | splunk.username=admin 21 | splunk.password=admin 22 | -------------------------------------------------------------------------------- /splunk/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /spring-pulsar/src/main/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /spring-xquery/README.adoc: -------------------------------------------------------------------------------- 1 | == Spring XQuery Example 2 | 3 | === Introduction 4 | 5 | This example shows how to 6 | 7 | * work with files and JMS 8 | * transform messages using XQuery 9 | * use Spring XML to configure all routing rules and components 10 | 11 | The example consumes messages from a directory, transforms them, then 12 | sends them to a queue. 13 | 14 | === Build 15 | 16 | You will need to compile this example first: 17 | 18 | ---- 19 | $ mvn compile 20 | ---- 21 | 22 | === Run 23 | 24 | To run the example using Maven, type 25 | 26 | ---- 27 | $ mvn camel:run 28 | ---- 29 | 30 | You can see the routing rules by looking at the Spring XML configuration 31 | at `+src/main/resources/META-INF/spring+` 32 | 33 | To stop the example hit ctrl+c 34 | 35 | === Help and contributions 36 | 37 | If you hit any problem using Camel or have some feedback, then please 38 | https://camel.apache.org/community/support/[let us know]. 39 | 40 | We also love contributors, so 41 | https://camel.apache.org/community/contributing/[get involved] :-) 42 | 43 | The Camel riders! 44 | -------------------------------------------------------------------------------- /spring-xquery/src/data/message1.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | James 22 | Strachan 23 | London 24 | -------------------------------------------------------------------------------- /spring-xquery/src/main/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /spring-xquery/src/main/resources/broker.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | false 24 | false 25 | 26 | vm://0 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /spring-xquery/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.stdout.type = Console 19 | appender.stdout.name = stdout 20 | appender.stdout.layout.type = PatternLayout 21 | appender.stdout.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.stdout.ref = stdout 24 | -------------------------------------------------------------------------------- /spring-xquery/src/main/resources/myTransform.xquery: -------------------------------------------------------------------------------- 1 | (: 2 | Licensed to the Apache Software Foundation (ASF) under one or more 3 | contributor license agreements. See the NOTICE file distributed with 4 | this work for additional information regarding copyright ownership. 5 | The ASF licenses this file to You under the Apache License, Version 2.0 6 | (the "License"); you may not use this file except in compliance with 7 | the License. You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | :) 17 | 18 | {/person/firstName/text()} {/person/lastName/text()} 19 | {/person/city/text()} 20 | -------------------------------------------------------------------------------- /spring/README.adoc: -------------------------------------------------------------------------------- 1 | == Spring Example 2 | 3 | === Introduction 4 | 5 | This example shows how to work with files and JMS, using Spring to boot 6 | up Camel and configure the routes. 7 | 8 | The example consumes messages from a queue and writes them to the file 9 | system. 10 | 11 | === Build 12 | 13 | You will need to compile this example first: 14 | 15 | ---- 16 | $ mvn compile 17 | ---- 18 | 19 | === Run 20 | 21 | To run the example type 22 | 23 | ---- 24 | $ mvn camel:run 25 | ---- 26 | 27 | You can see the routing rules by looking at the java code in the 28 | `+src/main/java directory+` and the Spring XML configuration lives in 29 | `+src/main/resources/META-INF/spring+` 30 | 31 | To stop the example hit ctrl+c 32 | 33 | === Help and contributions 34 | 35 | If you hit any problem using Camel or have some feedback, then please 36 | https://camel.apache.org/community/support/[let us know]. 37 | 38 | We also love contributors, so 39 | https://camel.apache.org/community/contributing/[get involved] :-) 40 | 41 | The Camel riders! 42 | -------------------------------------------------------------------------------- /spring/src/data/message1.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | James 22 | Strachan 23 | London 24 | -------------------------------------------------------------------------------- /spring/src/data/message2.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | Hiram 22 | Chirino 23 | Tampa 24 | -------------------------------------------------------------------------------- /spring/src/main/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /spring/src/main/resources/broker.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | false 24 | false 25 | 26 | vm://0 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /spring/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.stdout.type = Console 19 | appender.stdout.name = stdout 20 | appender.stdout.layout.type = PatternLayout 21 | appender.stdout.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.stdout.ref = stdout 24 | -------------------------------------------------------------------------------- /telegram/README.adoc: -------------------------------------------------------------------------------- 1 | == Telegram API Example 2 | 3 | This example shows how to use Telegram API. 4 | 5 | === How to run 6 | 7 | You can run this example using 8 | 9 | ---- 10 | $ mvn compile exec:java 11 | ---- 12 | 13 | === Custom chat and authorization token 14 | 15 | You can specify your "chat id" and "authorization token" in "application.properties" file. 16 | 17 | === Help and contributions 18 | 19 | If you hit any problem using Camel or have some feedback, then please 20 | https://camel.apache.org/community/support/[let us know]. 21 | 22 | We also love contributors, so 23 | https://camel.apache.org/community/contributing/[get involved] :-) 24 | 25 | The Camel riders! 26 | -------------------------------------------------------------------------------- /telegram/src/main/java/org/apache/camel/example/telegram/TelegramRouteBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example.telegram; 18 | 19 | import org.apache.camel.builder.RouteBuilder; 20 | 21 | public class TelegramRouteBuilder extends RouteBuilder { 22 | 23 | @Override 24 | public void configure() { 25 | from("direct:start") 26 | .toF("telegram:bots/?authorizationToken=%s&chatId=%s", Application.AUTHORIZATION_TOKEN, Application.CHAT_ID); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /telegram/src/main/java/org/apache/camel/example/telegram/usage/TelegramMethodUsage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example.telegram.usage; 18 | 19 | import org.apache.camel.CamelContext; 20 | 21 | public interface TelegramMethodUsage { 22 | void run(CamelContext context) throws InterruptedException; 23 | } 24 | -------------------------------------------------------------------------------- /telegram/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | authorizationToken=665977497:AAE_-dk0zgWEwBK404Y6dJh4B5W3E--qz1c 18 | chatId=-182520913 19 | -------------------------------------------------------------------------------- /transformer-demo/README.adoc: -------------------------------------------------------------------------------- 1 | == Declarative Transformer and Validator Demo using Spring XML 2 | 3 | === Introduction 4 | 5 | This example shows how to work with declarative transformation and 6 | validation by declaring data types. 7 | 8 | === Build 9 | 10 | You will need to compile this example first: 11 | 12 | ---- 13 | $ mvn compile 14 | ---- 15 | 16 | === Run 17 | 18 | To run the example type 19 | 20 | ---- 21 | $ mvn exec:java 22 | ---- 23 | 24 | You can see the routing rules by looking at the Spring XML configuration 25 | lives in `+src/main/resources/META-INF/spring+` 26 | 27 | If you enable DEBUG level log for org.apache.camel.processor, you can 28 | see the details of when/which transformers & validators are applied. 29 | Check the `+src/main/resources/log4j2.properties+` 30 | 31 | === Help and contributions 32 | 33 | If you hit any problem using Camel or have some feedback, then please 34 | https://camel.apache.org/community/support/[let us know]. 35 | 36 | We also love contributors, so 37 | https://camel.apache.org/community/contributing/[get involved] :-) 38 | 39 | The Camel riders! 40 | -------------------------------------------------------------------------------- /transformer-demo/src/main/resources/META-INF/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Apache Camel distribution. == 5 | ========================================================================= 6 | 7 | This product includes software developed by 8 | The Apache Software Foundation (http://www.apache.org/). 9 | 10 | Please read the different LICENSE files present in the licenses directory of 11 | this distribution. 12 | -------------------------------------------------------------------------------- /transformer-demo/src/main/resources/org/apache/camel/example/transformer/demo/jaxb.index: -------------------------------------------------------------------------------- 1 | ## ------------------------------------------------------------------------ 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## ------------------------------------------------------------------------ 17 | 18 | Order 19 | OrderResponse 20 | -------------------------------------------------------------------------------- /vault/aws-secrets-manager-reloading/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /vault/aws-secrets-manager/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /vault/azure-key-vault-reloading/src/main/java/org/apache/camel/example/MyRouteBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example; 18 | 19 | import org.apache.camel.builder.RouteBuilder; 20 | 21 | public class MyRouteBuilder extends RouteBuilder { 22 | 23 | @Override 24 | public void configure() throws Exception { 25 | from("timer://myTimer?fixedRate=true&period=10000") 26 | .log("Secret value is: {{azure:hello}}"); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vault/azure-key-vault-reloading/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /vault/google-secret-manager-reloading/src/main/java/org/apache/camel/example/MyRouteBuilder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.apache.camel.example; 18 | 19 | import org.apache.camel.builder.RouteBuilder; 20 | 21 | public class MyRouteBuilder extends RouteBuilder { 22 | 23 | @Override 24 | public void configure() throws Exception { 25 | from("timer://myTimer?fixedRate=true&period=10000") 26 | .log("Secret value is: {{gcp:hello}}"); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vault/google-secret-manager-reloading/src/main/resources/log4j2.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | 18 | appender.out.type = Console 19 | appender.out.name = out 20 | appender.out.layout.type = PatternLayout 21 | appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n 22 | rootLogger.level = INFO 23 | rootLogger.appenderRef.out.ref = out 24 | -------------------------------------------------------------------------------- /whatsapp/README.adoc: -------------------------------------------------------------------------------- 1 | == WhatsApp API Example 2 | 3 | This example shows how to use WhatsApp API. 4 | 5 | === How to run 6 | 7 | You can run this example using 8 | 9 | ---- 10 | $ mvn compile exec:java 11 | ---- 12 | 13 | === Custom chat and authorization token 14 | 15 | You can specify your "phone number id", "authorization token", "recipient phone number" and "webhook verify token" in "application.properties" file. 16 | 17 | In order to use the webhook and configure it on whatsapp-business interface you can use https://ngrok.com/ in order to expose your localhost to the internet, by default the webhook is exposed on /camel-whatsapp/webhook 18 | 19 | To configure the webhook on whatsapp-business, you can follow this guide https://developers.facebook.com/docs/whatsapp/cloud-api/guides/set-up-webhooks. 20 | 21 | === Help and contributions 22 | 23 | If you hit any problem using Camel or have some feedback, then please 24 | https://camel.apache.org/community/support/[let us know]. 25 | 26 | We also love contributors, so 27 | https://camel.apache.org/community/contributing/[get involved] :-) 28 | 29 | The Camel riders! 30 | -------------------------------------------------------------------------------- /whatsapp/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## --------------------------------------------------------------------------- 2 | ## Licensed to the Apache Software Foundation (ASF) under one or more 3 | ## contributor license agreements. See the NOTICE file distributed with 4 | ## this work for additional information regarding copyright ownership. 5 | ## The ASF licenses this file to You under the Apache License, Version 2.0 6 | ## (the "License"); you may not use this file except in compliance with 7 | ## the License. You may obtain a copy of the License at 8 | ## 9 | ## http://www.apache.org/licenses/LICENSE-2.0 10 | ## 11 | ## Unless required by applicable law or agreed to in writing, software 12 | ## distributed under the License is distributed on an "AS IS" BASIS, 13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ## See the License for the specific language governing permissions and 15 | ## limitations under the License. 16 | ## --------------------------------------------------------------------------- 17 | authorizationToken= 18 | phoneNumberId= 19 | recipientPhoneNumber= 20 | webhookVerifyToken= --------------------------------------------------------------------------------