spring-boot - 集群 - FileLockClusterService 使用
问题描述
我正在尝试使用文件锁(活动/备用节点)方法使用 Camel Clustering。根据文档(https://camel.apache.org/manual/latest/clustering.html),在 Spring Boot 配置文件中,我们可以定义集群详细信息,如下所示。我遇到的问题是,我不知道需要添加哪个 Maven 依赖项才能配置以下属性。
camel.component.file.cluster.service.enabled = true
camel.component.file.cluster.service.id = ${random.uuid}
camel.component.file.cluster.service.root = ${java.io.tmpdir}
pom.xml
....
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-master-starter</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-file-starter</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-spring-boot-starter</artifactId>
</dependency>
....
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-spring-boot-dependencies</artifactId>
<version>3.4.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
....
春季启动版本:2.2.5.RELEASE
任何指针都会有所帮助。
解决方案
推荐阅读
- sql - 难以确定 PostgreSQL 查询的语法以获取帖子的时间线
- python - AttributeError:模块“tensorflow_core.python.keras.api._v2.keras.activations”没有属性“swish”
- python-3.x - TheadPoolExecutor _wait_for_tstate_lock python 有问题(线程死锁?)
- python - opencv 阈值处理和 pytesseract
- html - 我正在尝试在悬停时隐藏一个文本并仅使用 html 和 css 在其位置显示另一个文本
- bison - yylex的多重定义
- laravel - whereHas laravel 的表现
- sql - 为什么 JOIN LATERAL 不会取消透视多个字段
- django - 使用 WSGI 使用 django rest 框架进行日志记录
- reactjs - 将状态值在 React 中发挥作用