This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Services and the fly likes can web service do this kind thing that currently done by UNIX script ?s Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "can web service do this kind thing that currently done by UNIX script ?s" Watch "can web service do this kind thing that currently done by UNIX script ?s" New topic
Author

can web service do this kind thing that currently done by UNIX script ?s

Steve Yu
Ranch Hand

Joined: Mar 26, 2003
Posts: 60
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)

thanks,
steve
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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...


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can web service do this kind thing that currently done by UNIX script ?s
 
Similar Threads
Need unix shell script Help
Cross Platform File Path
Capture xmlfiles on website
Design problem
Calling/invoking a web service