我们可以在 quarkus+Camel 应用程序中使用 XML DSL
Can we use XML DSL in quarkus+Camel application
我创建了一个 XML 基于 DSL 的 camel 应用程序,它部署在 redhat fuse 中。现在,我想在 quarkus 中开发和 运行 相同的应用程序。我的路线没有在 quarkus 中启动。
它在日志中显示以下消息。
共0条路线,其中0条已启动
我应该进行哪些额外配置才能检测到路由器并 运行。
不可以在 camel-quarkus 中使用 spring/blueprint xml 文件。
您可以在 xml 中定义路由,就像本例 https://github.com/apache/camel-quarkus/tree/master/examples/timer-log-xml 一样,但是如果您需要定义 bean 等,则需要使用 CDI
以编程方式进行
我创建了一个 XML 基于 DSL 的 camel 应用程序,它部署在 redhat fuse 中。现在,我想在 quarkus 中开发和 运行 相同的应用程序。我的路线没有在 quarkus 中启动。
它在日志中显示以下消息。
共0条路线,其中0条已启动
我应该进行哪些额外配置才能检测到路由器并 运行。
不可以在 camel-quarkus 中使用 spring/blueprint xml 文件。
您可以在 xml 中定义路由,就像本例 https://github.com/apache/camel-quarkus/tree/master/examples/timer-log-xml 一样,但是如果您需要定义 bean 等,则需要使用 CDI
以编程方式进行