I have written a batch processor that is monitoring a port and continuously processing packets. It has happened on occasion that after making changes/upgrades to the code, it has run into a programming error and stopped running. I was hoping I could use an error handler to get it to recover from the error, but so far it hasn't worked.
First I tried an error handler that just reported the error to a log. After reporting the error, it just stopped running.
Next I tried having the error handler restart the solution using closeSolution(solution_to_open, parameters), but this doesn't seem to work for batch processes - an un-named headless client is started (shows up in the admin console with no name) that doesn't appear to be doing anything.
Next I may try using Scott Buttler's Robot plugin to close and restart the batch process.
Any thoughts/ideas are much appreciated. Thanks.