• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Can Entity Bean synchronize data when put across multiple apps server with no cluster

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys..
I have a question that I need to figure out..
Can Entity Bean synchronize the data when it's being put across multiple application server with no clustering?
An example would be like this..
I have two application server containing the same exact Entity Bean viewing the same row in a table in one database. Then, illustrate the following sequence:
1. Entity Bean A reads the Data (say, equals to 13)
2. Entity Bean B reads the Data as well (13)
3. Then, B updates the Data to 17
The question is:
1. Would Entity Bean A know about the Data being updated to 17?
2. Is it allowed for the Entity Bean A to update the Data (which is invalid) to say, 16..? If it's allowed, then what happened with B? He wouldn't know if his update really means nothing..
Please let me know what you think, guys..
Since, I'm also a beginner in this J2EE..
Please remember that the environment consists of 2 application server and 1 database, and the Entity Bean lies across application server, and that we don't have any clustering (we use our own session manager to manage the session through database)..
Please let me know..
Thank you..
- eric
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you use Option C caching (e.g. NO caching) and you set the transaction isolation to serializable, then this will work without a problem since nothing will ever be cached...
Otherwise, you're hosed.
Kyle
[ March 11, 2002: Message edited by: Kyle Brown ]
 
Climb the rope! CLIMB THE ROPE! You too tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic