Win a copy of Java 9 Revealed this week in the Features new in Java 9 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: 12100
246
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!