我们使用Spring来运行骆驼路线,使用Camel Spring Boot启动器。我们想知道在什么时候用骆驼进行加工?问题是,由于我们是从Camel外部调用可执行的jar文件,所以它需要知道何时完成了Camel处理(例如,在处理了目录中的一堆文件之后)。如果我们启用camel.springboot.main-run-controller=true,则骆驼进程永远不会返回,外部批处理进程将无限期地等待。如果我们使camel.Springboot.main- routes =false,则camel进程将立即返回,而不需要处理文件(因为路由是在守护进程线程中启动的)。有更简单的解决办法吗?
我试图调用camel/java/class(这是很长的程序,所以没有时间转换)。因此,目前的解决方案是从spring启动开始,然后调用主类。
这里是springboot的主要应用程序,它将调用javaee/class,我之前尝试过简单的bean调用,所以这是我最近的一次测试,因为我想到了正确的bean调用,但是不幸的是,即使是正确的bean调用也与简单的bean调用一样错误,
@SpringBootApplication
public class App {
public static void main(String[] args) throws Exception {
我对这些依赖项的依赖程度越来越低。由于没有适用于quartz的3.8.0版本,我如何管理它?是不是唯一的办法就是将核心camel版本降级到3.0.0-M4? Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.camel.component.quartz2.springboot.QuartzComponentAutoConfiguration': Injection of autowir
我开发了一个在karaf中使用camel smpp路由的项目。
在开始的时候,我使用spring来编写我的骆驼路线。这样做效果很好。
后来,我尝试使用java DSL来编写camel smpp路由,但我所做的一切都导致了以下结果。
org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[[From[smpp://username@localhost:2775?pa... because of Failed to resolve endpoint: smpp://use
我已经启动应用程序,它有一组骆驼路线。当一个JVM崩溃时,我正在寻找一个选项来实现骆驼路由的故障转移。我的目标是让我的应用程序在一个JVM中运行,当应用程序出现故障时,另一个JVM的路径应该会处理我的消息。
当我尝试添加集群时,我会得到一个错误(由: java.lang.IllegalStateException: CamelCluster服务未找到引起),甚至我也不确定我尝试代码的方式是否正确。
public class RouteCmdLineRunner implements CommandLineRunner {
@Autowired
private Configuration co
可以帮助我解决这个错误并解释我出了什么问题?
我正在开发一个简单的骆驼路线来处理一个信息,然后将它存储在一个文件中。
我正在使用的技术:
3.3.0Spring-boot JDK 11Apache Camel 2.3.0
当我想测试骆驼路线时,我得到了以下错误。
org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[]
at org.apache.camel.CamelExecutionException.wrapCamelEx
我的gradle.build上有这个漏洞,
jetty-http-9.4.46.v20220331.jar | Reference: CVE-2022-2047 | CVSS Score: 2.7 | Category: CWE-20 | In Eclipse Jetty versions 9.4.0 thru 9.4.46, and 10.0.0 thru 10.0.9, and 11.0.0 thru 11.0.9 versions, the parsing of the authority segment of an http scheme URI, the Jetty HttpURI