【发布时间】:2018-09-21 16:32:13
【问题描述】:
我们使用 Spring Boot 来使用 Camel Spring Boot starter 运行 Camel 路由。我们想知道如何准确地在 Camel 中完成处理?问题是,由于我们从 Camel 外部调用可执行 jar 文件,它需要知道 Camel 处理何时完成(例如在处理目录中的一堆文件之后)。如果我们启用 camel.springboot.main-run-controller=true,Camel 进程永远不会返回,外部批处理进程会无限期地等待。如果我们设置 camel.springboot.main-run-controller=false,camel 进程将立即返回而不处理文件(因为路由是在守护线程中启动的)。有更简单的解决方案吗?
【问题讨论】:
标签: spring-boot apache-camel integration