The solution i found for this is I will have my JSP deployed on a UNIX server and it will call the UNIX script from there.
Now suppose this unix script ,I only have to transfer to UNIX server before keeping it at a particular location there and calling it.
The Problem is:
I know how to make my JSP(once deployed on UNIX) call this JSP ----FINE
But how do i transfer this UNIX script to that particular UNIX server-----I NEED SOLUTION TO THIS
Monica. Shiralkar wrote:
But how do i transfer this UNIX script to that particular UNIX server
Are you having multiple servers?
Why not bundle that script in the WAR to put it on a particualr server or have a properties file to contain the location of the script?
I am not getting the exact problem.
Your idea of: bundle that script in the WAR to put it on a particualr" server sounds as solution
but my doubt is.suppose i have bundled script in the war .Now when i deploy this war.I have to keep this script at a particular location on unix server.how to transfer script from war to this unix server location where it is depoloyed.
Monica. Shiralkar wrote:We want to give this WAR to our client.our client should deploy the WAR on his unix server and Run the JSP which will call the scipt(but somehow the script needs to be transfered there).
I see several problem with this approach. Firstly, if you don't know anything about the server where the script will run, then it's unlikely that the script will work on all of them. There's a large variety of Unix/Linux distributions and versions with many differences in paths, capabilities, environment variables, directory layout etc.
Secondly, on a Unix/Linux server a web app is very unlikely to have the rights to install or run shell scripts. On such systems it's common to use different user accounts for servers, especially to limit what they can do to the rest of the system. There may also be a security manager in place that governs what web apps can do on the Java level.
What does the script do that the web app can't do in Java code? It may be cheaper to spend a developer-month on adding those capabilities to the web app than to have to deal with the installation, maintenance and support issues of having to install a shell script over the lifetime of the web app.
We can bundle a unix scipt inside a WAR.the deployed app can use this script.BUT there is no way this script can be AUTOMATICALLY transferred to any particular location on the server war is deployed.(Unless manually done)
please correct me if i am wrong.
In general for any WAR is it possible to bundle a unix script and this script will be transfered to cetain location on the unix server.?