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

Locking - Confused... @.@  RSS feed

 
RIO YOU
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Locking-UnLocking methods are just confusing for me.

I'm just thinking....


================================================= my scenario is,
If The REMOTE CLIENT reads the DB-File by RMI, it would be based on
READ-ONLY Threads.

OK.. It's Fine.

imagine that If the CLIENT's trying to book-update-delete one record.

At this time, Should the CLIENT re-open the DB-File as READ-WRITE mode?


Any comments helpful for me.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12143
255
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rio,

This sounds like you plan to have one file connection per connected client. Is that right?

Regards, Andrew
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!