Package org.apache.camel.component.file.strategy

Examples of org.apache.camel.component.file.strategy.FileProcessStrategy.commit()


                if (LOG.isDebugEnabled()) {
                    LOG.debug("About to process file:  " + file + " using exchange: " + exchange);
                }
                if (processStrategy.begin(endpoint, exchange, file)) {
                    getProcessor().process(exchange);
                    processStrategy.commit(endpoint, exchange, file);
                }
                else {
                    if (LOG.isDebugEnabled()) {
                        LOG.debug(endpoint + " cannot process file: " + file);
                    }
View Full Code Here


                // exchange can happen asynchronously
                getAsyncProcessor().process(exchange, new AsyncCallback() {
                    public void done(boolean sync) {
                        if (exchange.getException() == null) {
                            try {
                                processStrategy.commit(endpoint, (FileExchange)exchange, file);
                            } catch (Exception e) {
                                handleException(e);
                            }
                        } else {
                            handleException(exchange.getException());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.