I have a Java class with a main()
method. It contains logic to do some number crunching and analysis. Its scheduled to run once per day and may be manually run again if needed. The routine uses Log4j to log its activities. Running it and checking the log requires a remote login to the host box.
I would like to convert it to a web application, where I can trigger it through a web page and see the output of the log, ideally as it scrolls.
What would be the best way to do this? A Java webapp? A simple generic web based script runner? or any other option I may not be aware of.
Update: A bit more detail on requirements:
- Ability to launch the program from a web page
- Ability to see the scrolling output from Log4j
- If I leave the page and come back again, it should let me know that the last run is still running and show the log. I don't need to have the ability to run multiple instances in parallel.