Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Data / File replication in websphere cluster environment  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!