• 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

Cleaning up stale locks

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi fellow java coders,
I was wondering if anybody has used athe TimerTask class to clean up stale locks. My concern here is that if we use this class then my code will not run on all Java 2 platforms as my specifications state:
"Specifically, you should document clear, simple command lines that allow your programs to be run on ANY Java 2 platform,.."
Does this mean if that my application must run on all Java 2 platforms, or have I misinterptreted the specs. Using TimerTask (as its a 1.3 implementation) does not meet this requirement.
Any thoughts?
Cheers,
Richard
 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess you are right. Any Java 2 platform means the lowest common denominator, which is the earliest version of Java 2.
No is no. (sometimes no is yes, but thats outside of Java world )
That makes a great test case. Download the ealiest Java2 RT and see if your app runs smoothly.
 
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
Just to let you know people have passed using TimerTasks etc.
Also in the requirements you are asked the exact version of JDK you used. I suppose the people at Sun make sure they test your app on that version or take it into account.
Ian
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic