Package org.easybatch.xml

Examples of org.easybatch.xml.XmlRecordReader


                .build();
    }

    public static EasyBatchEngine buildXmlEasyBatchEngine(String customersFile) throws Exception {
        return new EasyBatchEngineBuilder()
                .registerRecordReader(new XmlRecordReader("customer", new File(customersFile)))
                .registerRecordMapper(new XmlRecordMapper<Customer>(Customer.class))
                .build();
    }
View Full Code Here


                .registerRecordProcessor(new GreetingDataLoader())
                .build();

        // Build an easy batch engine to read greetings from xml file
        EasyBatchEngine easyBatchXmlEngine = new EasyBatchEngineBuilder()
                .registerRecordReader(new XmlRecordReader("greeting", new File(args[1])))
                .registerRecordMapper(new XmlRecordMapper<Greeting>(Greeting.class))
                .registerRecordProcessor(new GreetingDataLoader())
                .build();

        //create a 2 threads pool to call Easy Batch engines in parallel
View Full Code Here

    public static void main(String[] args) throws Exception {

        // Build an easy batch engine
        EasyBatchEngine easyBatchEngine = new EasyBatchEngineBuilder()
                .registerRecordReader(new XmlRecordReader("greeting", new File(args[0])))
                .registerRecordMapper(new XmlRecordMapper<Greeting>(Greeting.class, new File(args[1])))
                .registerRecordProcessor(new GreetingProcessor())
                .build();

        // Run easy batch engine
View Full Code Here

TOP

Related Classes of org.easybatch.xml.XmlRecordReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.