• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

display data from linux smps

 
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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.

Thanks and Regards
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic