This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Object Passing & File I/O on a Cluster Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Object Passing & File I/O on a Cluster" Watch "Object Passing & File I/O on a Cluster" New topic
Author

Object Passing & File I/O on a Cluster

Debashish Chakrabarty
Ranch Hand

Joined: May 14, 2002
Posts: 226

Hey Ranchers,

I have requirement where I need to replicate a file on all servers of the cluster. The application is a Portal hosted on Vignette Application Portal and is hosted in a clustered environment.

One of the modules (which is a Cache refresher) has the job to refresh a local XML file when called. Since File I/O is involved, the file is only written on the "current" server's disk. This XML file is also stored to a Hashtable instance variable of the Refresher Class, meaning that it is available in memory.

The task is that this file be refreshed across the Cluster. Probably the approach (that I thought would work) would be to call a JSP/Servlet situated on each of the servers using specific Server URLs (and not the alias) and write the File using file I/O.

The big question to me here is how I get the XML file in the first place. The file, as I said earlier is added to memory (But that confuses me, isn't it only available on that particular JVM's memory?) but can it be accessed on any server of the cluster? If yes, my job is easier. If no how can I send the file to the JSP/Servlet that will do the replication job?

Thanks,


Debashish
SCJP2, SCWCD 1.4
Debashish Chakrabarty
Ranch Hand

Joined: May 14, 2002
Posts: 226

Sorry Moderators, but should this be posted under any other forum topic?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Object Passing & File I/O on a Cluster
 
Similar Threads
General questions on Portal servers
Test 252: Mock exam
000-341 sample test questions
General questions on Portal servers
General questions on Portal servers