Hi Your begin method has to return true as the javadoc states!
On Fri, Jul 16, 2010 at 12:16 PM, Andreas Asmuss <andreasasm...@gmail.com> wrote: > > Hi > > I've tried to implement the interface, don't know if it's correct, but it > seems that only prepareOnStartup is ever called when running the route. > > public class CscProcessStrategy implements > GenericFileProcessStrategy<File> { > > public boolean begin(GenericFileOperations<File> operations, > GenericFileEndpoint<File> endpoint, Exchange exchange, > GenericFile<File> file) throws Exception { > operations.changeCurrentDirectory("'DATA.OUT.EDI'"); > return false; > } > > public void commit(GenericFileOperations<File> operations, > GenericFileEndpoint<File> endpoint, Exchange exchange, > GenericFile<File> file) throws Exception { > } > > public void prepareOnStartup(GenericFileOperations<File> operations, > GenericFileEndpoint<File> endpoint) throws Exception { > } > > public void rollback(GenericFileOperations<File> operations, > GenericFileEndpoint<File> endpoint, Exchange exchange, > GenericFile<File> file) throws Exception { > } > } > -- > View this message in context: > http://camel.465427.n5.nabble.com/FTP-on-MVS-filesystem-tp1092836p1223982.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus