• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I failed get 0 in locking. :(

 
Rui Hu
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I understand something wrong about non-network model.
Does it mean multiple client access the same datafile?

I did nothing about file locking.

I thought non-network model is just a single stand alone client.
 
Andy Zhu
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't understand you question here. The project seems to me that at access layer, it doesn't care the connection mode. remote and alone use the same access layer code. So there can't be one copy for locked and the other for non-locked.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi javafun,

Welcome to JavaRanch.

We don't have many rules here, but one we do have is the JavaRanch Official Policy On Displayed Names, which requires your displayed name to be a real name.

Could you please change your displayed name to meet this policy? You can change it here.

I don't think you misunderstood that part of the problem. In standalone mode, only one client should be connecting to the database. There should be no need for file level locking.

It sounds like the problem is elsewhere in your locking solution.

Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic