Project for course about Apache Camel + Spring Boot
View the Project on GitHub laissonsilveira/camel-spring-boot-course
Project for course about Apache Camel + Spring Boot.
OBS: In case that don’t work, check routes with .noAutoStartup()
pipeline or with @Component
commented
Camel is an Open Source integration framework that empowers you to quickly and easily integrate various systems consuming or producing data.
Topic Reference | Reference |
---|---|
Why Camel? | https://camel.apache.org/manual/latest/faq/why-the-name-camel.html |
Camel Examples | https://github.com/apache/camel-examples/tree/master/examples |
Camel Spring Boot Configuration | https://camel.apache.org/camel-spring-boot/latest/spring-boot.html |
Complete Spring Boot Starters List | https://camel.apache.org/camel-spring-boot/latest/list.html |
Camel Spring Boot Examples | https://github.com/apache/camel-spring-boot-examples |
Enterprise Integration Patterns | https://camel.apache.org/components/latest/eips/enterprise-integrationpatterns.html |
Architecture:
Some examples
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-activemq-starter</artifactId>
<version>${camel.version}</version>
</dependency>
docker run -p 61616:61616 -p 8161:8161 rmohr/activemq
spring.activemq.broker-url=tcp://localhost:61616
http://localhost:8161
with user/password -> admin/admin
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-kafka-starter</artifactId>
<version>${camel.version}</version>
</dependency>
./docker-compose.yaml
filedocker-compose up
on docker-compose directorycamel.component.kafka.brokers=localhost:9092
/etc/hosts
and add unknown host created. Ex: 127.0.0.1 458077ddabfc
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-http-starter</artifactId>
<version>${camel.version}</version>
</dependency>
@RestController
in service B and add config restConfiguration().host("localhost").port(8000);
RestApiRoute.java
in service A with to("rest:METHOD:/PATH")
Microservice A
Microservice B
Command to create:
keytool -genseckey -alias myDesKey -keypass someKeyPassword -keystore myDesKey.jceks -storepass someKeystorePassword -v -storetype JCEKS -keyalg DES
OBS: put myDesKey.jceks
in your src/main/resources
directory
Crypto data class: MyCryptoData