Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Quick Question on updation  RSS feed

 
ghazanfar khan
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,
I am developing client side application, i am using JInternalFrame. In this i have option name as Query in which it shows the current status of data like at what state is my data right now.

I have question let us suppose client 1 is log in and Client 2 in log in
Client one view the Query Frame (Data status is right now is 1) but at the same time Client 2 change the status of that data from 1 to 2.

So how is that possible that my client 1 can see that updation mean then it data stae changes from 1 to 2 without kill that frame.

I guss this question is related to threading question, can anyone please help me

thanks in advance
looking forward
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's related to threading, but the first and much larger hurdle is getting clients to talk to each other. Is there an application server or only a database server? Does Client1 send the changes somewhere like a database before we want to echo it to other Clients? Do you have or do you know some kind of remote protocol, such as sockets, RMI or HTTP?
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
push or pull.

Pull: Client 1 updates itself every so often or at certain events related to what the user of Client 1 is doing.

Push: Client 2 makes the change, and the server sends a signal to client 1 that it needs to update its data.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!