• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java 101: users and documents handling question  RSS feed

 
choubix alex
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

I am a bit intrigued by how java handles users and documents.
so I would have 2 questions:

Q1:
let's say that:
user A opens Document 1.
user B also open Document 1.

-> isn't there any conflict here ?

(for instance, the changes made by user A would be "erased" by user B without user B being able to see the modifications made by user A)

Q2:
also:
if user A creates document and saves it, does user B have to close and reopen his java client to see the document created by user A?

thanks!
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of documents? What kind of application?
 
choubix alex
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,

For instance:

Software: Swing Client/Server/Database

User A is using the Swing Client, opens a Customer's file to update some info in the database (new email address and telephone number for instance)
User B opens the same Customer file to see info around the same time as he needs to call the customer and needs the phone number.

I believe User B will not see the changes in the Customer's profile unless he restarts his client? Am I right?

if so: is there a way to lock the document (Customer's file in that case) while User A is updating, let User B know that User A is working on this document, release the document when User A is done?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on how it's implemented; it definitely wouldn't require a client restart if done even half-way decently--at worst a client would need to reload the data.
 
choubix alex
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your input.
I still have to cover a lot of ground before I can develop a client that is "half correctly" baked ;)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!