Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.
I have a class which manages all db APIs like select, delete, update, insert
etc., I have a table in Mysql DB which has a flag variable that will get set
from an external script. The application will keep polling for this variable
and when this variable is set., it will take appropriate actions.
Unfortunately, the application always reads the old value from the database
table unless the object of the class is reinstantiated for every polling.
Kindly let me know what is the best way to achieve this without repeated
instantiation of the class object.
Thanks in Advance.
Try doing a commit or rollback after each poll; this is normal transactional