JavaCAPS: File vs. BatchLocal eWay
By leroyk on Jun 14, 2007
Spent some time with JavaCAPS this week creating what I hope to be a RSS feed. Still need data but I ran into an interesting choice. There are at least two ways to create a data file. In my case an RSS feed. I could choose between the File eWay and the BatchLocal eWay. With no history on which to use I chose the File eWay. Mainly since Batch seemed so 1980's and I been there done that. Well if you choose the file eWay you will be limited. I quickly ran into an issue that I could not overwrite my existing data. It just kept appending to the existing datafile. Bringing up the properties sheet illustrated my problem. I could choose the directory and the filename for output but had very little control over any thing. After consulting with the experts I was directed to the BatchLocal eWay. Well this is the way to go for any real application. Especially one you will put into production. It allows you to control how to append, name the file with a mask and much much more. So my wisdom of the day. Do not choose the File eWay go old school with the BatchLocal eWay. You will be happy.