I have a web application in which i write a data (user wise) in txt file and dispaly it to user (i don't want to store in database).
when i deployed my application in cluster environment , the application directory is created at each node say node1 and node2.
The cluster members are in memory-to-memory replication mode.
When i run application , assume that my request goes to node 1 server. I am working on this node server so i visit the page which saves data in txt file . I save the data.
Now the txt file is saved in directory of node 1 server.
now suppose that i stops node 1 server while working ,so automatically my request goes to node 2 server.
now when i visit the same page i get a balnk data as file is not created in node 2 server directory.so i get confused that i had saved data,now where is it?
So i again save the data .now the file is created again at node 2 server.
I want a configuration in websphere so whenever i save the data , the txt file should be created on both node servers ,so i always get the latest one.
Kindly give me a solution.