This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
We are a publication firm. We have an application that downloads some text or other files from a machine and our job is to run some script on these files, make some edition, then publish the modified files to other machines. The whole process is done by unix script. I am wondering if this can be done by J2EE web service and how ? Here are my specific questions ---
1. Without knowing much about web service (since I am not even a rookie yet), I assume (maybe I am wrong) web service is something to be used for public purpose. However, in our case we restrict the script to be handled very internally inside firewall. So, does web serive help us in this case ?
2. Is there any advantage to change the backend Unix script to J2EE web service ?
3. If you could outline a rough approach sketch, that will be greatly helpful ! (I mean, just a few sentences is enough)
I assume you're currently implementing the "download" with FTP or something similar that doesn't involve any processing before delivering the file over the wire? If that's the case, I'd prefer sticking to whatever you've got. Web services are good for implementing services and I wouldn't call a simple file download a service.
Anyway, if you decide to replace your current download mechanism with a web service, you can apply the same firewall rules for preventing external access as before. Web service requests (usually HTTP POST requests) go over the wire just like FTP connections...