• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

I failed get 0 in locking. :(

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic