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?