I was given a pretty routine task to read a xml file from a file system and update its content into the database.
I already had a jaxb program to read the object from xml file and update it to database. Since the xml file is put there on my machine at 8am each day, and I have to write
a schedule program to pick up the file. I have not work on schedule program before so I would like to seek your help. I am thinking about reusing my jaxb program. I wonder what is the best way to approach it? Could i write a scheduler program in eclipse , and how do I call that program at a certain time, let says 7:58 am in the morning?
I was faced with the same issue that you're facing a while ago. There are really no allowable ways of scheduling a process using a servlet since you should not be creating threads on your own. Therefore, it's advisable to use a cron job or a Window's service. Since I was using Windows, I elected to employ a java based Window's service. What a mistake as it was extremely fidgety to say the least. Fortunately, I know C# rather well having taught it many times over the years so I created my Window's service using that language.
IT Training Manager with the Hartmann Software Group