Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes !
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 555
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you guys,
Thanks,
Reddy.
 
And then we all jump out and yell "surprise! we got you this tiny ad!"
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic