Suppose I have developed a web application which is deployed on the webserver, now our LAN has 6 computers attached.IP Addresses of these computers is known to me. Now this application will keep on fetching the data after every 2 secs from all the PCs in this network, go to a particular folder in each of the computers and read the most recent file and upload its details to the database simultaneously.How to build this kind of application? Totally in a confused state of mind.Some code snippets or tutorials will be of great help.Please reply ASAP.
suppose I have developed a web application which is deployed on the webserver, now our LAN has 6 computers attached.IP Addresses of these computers is known to me. Now this application will keep on fetching the data after every 2 secs from all the PCs in this network, go to a particular folder in each of the computers and read the most recent file and upload its details to the database simultaneously.How to build this kind of application? Totally in a confused state of mind.Some code snippets or tutorials will be of great help.Please reply ASAP.
I am not getting your question completely because first you say web server and then LAN. How are they related.Please explain Time being, it seems that you need some socket programming for your LAN.
Yes all those computers are having ftp access.Do I need to configure my webserver for accesing data on those machines for reading files on those machines or IP addresses.How to do it? Give some example.Like my web application is deployed on the webserver using JSF on Netbeans with Visual Web Pack.How to access the files in the specified directories on those machines simultaneously like my web application should be able to fetch data from the files on those machines after every 2 secs and upload that data to the database.
You don't need to configure the web server, you just need to write the code that accesses those 6 machines via FTP. Thanks to the Apache Commons Net library, that's pretty easy. The javadocs of the org.apache.commons.net.ftp.FTPClient class show the basics of an FTP client.
Mind you, that's assuming that those 6 machines each have an FTP SERVER running; just having FTP CLIENTS on them won't help.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.