Search code examples
javaapache-camelems

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? 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


Solution

  • I understand this to be Tibco EMS.. if so, you need to wire up a jms component and do

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