• 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

Custom cleanup thread vs unreferenced

 
Ranch Hand
Posts: 560
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I like to hear the +ve and -ve aspects of the two approaches below. I am basically looking at passing the exam.
1) Develop a custom thread to wake up every few seconds (read from the properties file) and clean up the unreferenced locks on the records
2) Implement the Unreferenced interface in the remote implementation to clean up the unreferenced locks.
It is the choice between programmer defined cleanp up time vs default 15 minutes.
Thanks.
 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sai - I would do both as implementing #2 is not at all expensive where as #1 is a must for any database server, I feel.
However, 1st choice of yours covers choice#2 too.
-Rajesh
 
reply
    Bookmark Topic Watch Topic
  • New Topic