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.