Hi,
We are in a situation at work where we need to get away from having jobs executing on timer since there can be overlaps. We need to move towards having jobs executing based on events like if files exists in a given catalog.
Is it advisable to let a
java loop run 24 hours a day - checking every 5 minutes if there exist files in a given catalog and only then do an external call to the actual job? In my opinion a loop using Thread.sleep(5*60*1000) is returning resources to the operating system (Idle process). Is this true or false?
I am constantly beeing questioned at work by a colleague. He always tells me that java is no good since it consumes so much memory and resources.
Please give me a web URL (or arguments) that explains to him that small java applications are not more harmful than batch files or shell scripts. Both can of course contain bugs but java is not bound to clay down our servers.
Cheers,
Mr G