This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What technology to use - emailing results from an analysis  RSS feed

Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, basically I am setting up a jsp page that will take in the user's input files and the email address, then upload the files to another server (high performance cluster) for an analysis that can take on the order of days to run. When done several output files are created and I want these emailed to the user.

The best idea that I have come up with is to set up an hourly cron script on the intermediate server that will then take care of this (actually in turn calling a Java class that checks the status on the cluster and then obtains the results and emails them via the Java Mail API if the job is finished).
The mechanics of everything is working ok, when I just call the script directly it does properly call the Java class which does properly email the results if the job is finished on the cluster. Before I actually ask for permission from the administrator to set up this script on cron of the intermediate server I was just looking for any opinions as to whether this is an "ugly" solution to the problem and if there is any other cleaner way of accomplishing this, I don't really know where to even start looking for other approaches that will check the status on another server for a job, and then email the results if finished. Heck I can't even think of a good search term for this problem to check on Google for potential solutions.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!