I am developing a web application in java(JSF 2.0 - Prime Faces). I need to do below operation. My appllication is running on WLS server. WLS is deployed on a server(say Machine-X). In my application i have a requirement , where i have to copy file from Machine-X to another Machine-Y. The Machine-Y is access restricted. When i tried to copy the file from my app, getting no access exception. I have full control over Machine-Y. We cannot use SFTP as SFTP cannot be installed on target machine(Machine-Y). Robocopy is failing for some use cases. Is there any other way we can copy/write file from one server to other by providing userid/password in java
How is that a Java question? Ask the system administrator what other options he/she allows and disallows. IMO that "can't install SFTP" restriction is the one that needs to be lifted in stead of worked around. Whatever options you now have left over is going to be far less efficient and harder to manage.