from server check for file on another server
I have two server may be they will be at same network or not,while doing some work in jsp page at server 1 ,I want to ch开发者_如何学JAVAeck if file exist or not on the second server , How I can do this?
In case you are determined to do this in java, following is one solution:
- You need to create a server application on server2 which listens at a port and responds to some requests.
- You need to create a client application that communicates with the server and get the required information.
Hope this helps!
精彩评论