title: How to poll database and trace the latest record using java?
body: <p>I have a situation where user upload a new file when file successful submitted then one records is inserted into database table.i will run  other class,that poll database if new records is inserted retrieve file name then read file and insert all file records into database table.i'm not getting any idea to sortout this problem,please help me and provide your views for this situation.</p>
  
  <p>Thanks</p>