Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I just configured mysql DB replication but I also need to do simple file replication (xml files).

For example I have a file:

relative path: some_folder/something.xml;
absolute path: /home/www/some_folder/something.xml;

By now I read file the most usual way with JSP. I need two things:

1. Every update - need to update the replicated file on slave machine. Also I create files, so I need to create them on slave machine as well every time it occurs.

2. Need to read/use it in the slave machine if the "master file" fails.

How can I accomplish that?
Posted
Updated 12-May-11 5:52am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900