• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confusion about the statement given in the "instructions.html" file

 
G.T. Reddy
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
what does it mean of the following statement given ih the "instructions.html" .
#####################################################
If updates occur to a record that is being displayed on another client, then no change occurs at the other client.
###################################################
This statement is always true because until and unless you update the UI it would not show latest data because it a static display.
please read the following example what i implemented in my assignment.
For example :
I opened two remote clients in a single machine where server also running.
in first Client window:
----------------------
I selected one record where availble seats are only 2.
I reserved these two records.So the number of available seats now are zero in that record.
in second Client window:
----------------------
I selected the same record in the second client window.
It is showing number of available are 2 because it is not updated.
If I try to reserve these two seats it will through a message as "Sorry! no seats available.
my question is does this explanation satisfies the above given statement?.
please clarify me.
Thanks,
Reddy.
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes !
 
MSanjeevMehra
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if u can write code which refreshes 2nd clients gui, u r free to implement that. but as mentioned in sun instruction it is not necessary.
 
Vlad Rabkin
Ranch Hand
Posts: 555
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Reddy,

my question is does this explanation satisfies the above given statement

Yes, it is correct.
Sun wanted to say that if somebody changes record in database, your server doesn't have to send a message to GUI client about this change (Publisher/Subscriber Design).
Best,
Vlad
 
G.T. Reddy
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you guys,
Thanks,
Reddy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic