【问题标题】:Read an xml file from EMS queue using Apache Camel使用 Apache Camel 从 EMS 队列中读取 xml 文件
【发布时间】:2017-01-31 01:38:56
【问题描述】:

请看下面的代码

public class VerifyModule extends RouteBuilder {

   public void configure() {
         from("EMS_QUEUE_ADDRESS")
            .to(localfile);
   }
}

1) 这是从 EMS 队列中读取数据的正确方法吗?请问有人能给我一个工作的例子吗?

2) 我如何实例化和使用此模块以从 EMS 队列中读取并填充 localfile.txt

【问题讨论】:

  • 你是指JMS还是EMS?
  • 我的意思是 EMS,就像在 EMS 队列中一样
  • 好吧,如果您查看 Camel 的文档,您会看到没有与 EMS 对话的组件。您需要为此构建一个自定义组件。 camel.apache.org/components.html

标签: java apache-camel ems


【解决方案1】:

我知道这是 Tibco EMS.. 如果是这样,您需要连接一个 jms 组件并执行

参考:http://camel.apache.org/jms.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-17
    相关资源
    最近更新 更多