简体   繁体   中英

Read a remote XML file or copy it to locale (using Java)?

My question is about reading a remote XML file by using Java. My files are stored in one device that runs Windows CE. I should access to few of these devices several times per day. Which solution is more efficient considering network constraints, stablishment of a TCP session and data loss: to open and read the file remotelly or get a copy locally to the server and process it then? Thank you very much.

It seems u want the files to be read from client by server, whereas it most cases its the other way round. In this case you should have some push functionality from the client to server and this can be over HTTP.

Or you can have a Http connection listener running in the client which accepts request from server and sends back the XML file to the server. Essentially its like a server thread running in the client.

Not sure if u running JAVA on Windows CE. Look for solutions in Windows CE HTTP listener.

See if it helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM