aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 225

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: 225

Sorry Moderators, but should this be posted under any other forum topic?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Object Passing & File I/O on a Cluster
 
Similar Threads
General questions on Portal servers
General questions on Portal servers
000-341 sample test questions
General questions on Portal servers
Test 252: Mock exam