开发者

from server check for file on another server

开发者 https://www.devze.com 2023-03-12 12:54 出处:网络
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 th

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:

  1. You need to create a server application on server2 which listens at a port and responds to some requests.
  2. You need to create a client application that communicates with the server and get the required information.

Hope this helps!

0

精彩评论

暂无评论...
验证码 换一张
取 消