I am trying to build a web application using JSF. We have about 4 linux smp machines. I am supposed to display a dropdown list which is all the directory names available under /home/userrig/test directory. Anll linux machine has the same path.
I have displayed this list by reading the directories from the /home/userrig/test directory for every machine. I have deployed jar file in every machine and hence I read and display only from that machine.
But I am trying a way to consolidate from all the machines and display in one of the server with jar file deployed in that machine. Is it possible to do? If so please let me know how to do it?
From one machine to another I can always do ssh and see the other machine.
I think you need to state your needs more clearly, since they didn't make sense to me.
Each physical Linux computer has its own filesystem, independent of all the other computers, and this is true regardless of how many CPUs are in that computer. So just because you have a /home/userrig/test directory on one and it has a certain set of files/directories in it, that doesn't imply that any of the other computers do. Of course, if /home/userrig/test is a network shared directory, you can mount it on each machine and they'll all refer to the shared copy.
Listing what's in a directory can be done using java.io.File, and the process is so simple that you don't really need a special JAR for it unless you want it that way. but whether that JAR is copied to a specific location on each machine or is itself loaded from a shared network resource wouldn't make any difference in the data that the listing function returns. That's determined by the directory being listed, assuming that each JAR has identical listing code.
An IDE is no substitute for an Intelligent Developer.