• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic File Update

 
Ray Dawson
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm writing data to the database each time an user inputs a data, but the database is only updated after the program restarts.
So how can I dynamically save the db ?
 
Ray Dawson
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahh.... I solved the problem myself



 
Roel De Nijs
Sheriff
Posts: 10591
140
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you can tell how you solved it. It might be useful for other ranchers having same question/doubt/problem...
 
Ray Dawson
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using the

import java.util.Timer;
import java.util.TimerTask;

Check for the file when it gets updated then use the above to do what you want the program to do.
 
Roel De Nijs
Sheriff
Posts: 10591
140
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I don't understand: you are pushing it to submit before October 1st (and you'll miss some experience in some technologies needed for this certification), but you are spending a lot of time on parts which are not not required at all (like this one)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic