How would I set a t ime out on an auction product

hi

i have created an auction product object which has a closing date stating when the auction should close. I would like the product status to be closed, in the product list, when the closing date arrives.

please could you give me some code which would allow me to set up a timer on the auction product object, so that its status would change to closed when the closing date arrives. The object contains a variable 'status' which can be set to open or closed.

thanks
help_meAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
heyhey_Connect With a Mentor Commented:
you can start another Thread that will call your setStatus() method after some time ... or you can use javax.swing.Timer (if you are implementing visual app)  
0
All Courses

From novice to tech pro — start learning today.