• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Which layer the locking mechanism should be implemented?

 
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi guys:
I want to hear you openion about which layer in the application should the locking mechanism be implemented. Should it be considered a low level operation, implemented at the data access layer. Or,should be considered as high level operation, and implemented at the control layer level.
I am interested to hear all opinions.
thanks
[ May 28, 2004: Message edited by: Hanna Habashy ]
 
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 Hanna,

You might be interested in the really long discussion we had about this in the thread "Should lock methods be callable by the client".

As you will be able to see, some of us favour having the lock method exposed right up at the client code, and others favour having it hidden at a low or mid level.

Both have their good and bad points. Take a look at some of the arguments for and against, and work out which ones make the most sense to you.

(Then document your decision, of course ).

Regards, Andrew
 
reply
    Bookmark Topic Watch Topic
  • New Topic