• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Data / File replication in websphere cluster environment

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I think you need to understand how WebSphere cluster works.
You have unclear application design, because why you need to create file and then read it and show this data (something wrong here).
First of all you should use shared directory for both nodes.

See J2EE Connector Architecture (JCA) 1.5 standard - this is good decision for Flat File processing. (JCA Adapters are perfectly solutions for WebSphere cluster).

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.


This statement is not correct because not all resources couldn't be retried.
 
Die Fledermaus does not fear such a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic