简体   繁体   English

使用Apache Camel从EMS队列中读取xml文件

[英]Read an xml file from EMS queue using Apache Camel

See the code below 见下面的代码

public class VerifyModule extends RouteBuilder {

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

1) Is this the correct way to read from an EMS queue? 1)这是从EMS队列读取的正确方法吗? Please could someone give me a working example? 请有人给我一个工作的例子吗?

2) How do I instansiate and use this module in order to read from the EMS queue and populate the localfile.txt 2)我如何实例化和使用此模块,以便从EMS队列中读取并填充localfile.txt

I understand this to be Tibco EMS.. if so, you need to wire up a jms component and do 我知道这是Tibco EMS ..如果是这样,您需要连接一个jms组件并执行

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM