integrate Apache Camel into Spring Boot

This commit is contained in:
Thomas Peetz
2025-07-03 17:42:30 +02:00
parent adad4f88da
commit 5df3c1c47e
6 changed files with 62 additions and 3 deletions
@@ -0,0 +1,14 @@
package de.thpeetz.kontor.integration;
import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;
@Component
public class ReadQueueRoute extends RouteBuilder {
@Override
public void configure() throws Exception {
from("jms:queue:KontorMediaFile")
.log("${body}");
}
}
@@ -24,14 +24,29 @@ spring:
multipart:
max-file-size: 10MB
max-request-size: 10MB
artemis:
mode: native
host: 127.0.0.1
port: 61616
user: artemis
password: artemis
camel:
cloud:
enabled: true
springboot:
routes-reload-enabled: true
routes-reload-directory: routes
routes-relaod-pattern: "*.xml"
management:
endpoints:
web:
exposure:
include: health,info,metrics,prometheus
include: health,info,metrics,prometheus,camelroutes
endpoint:
health:
show-details: always
probes:
enabled: true
prometheus:
enabled: true
logging: