This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic File Update

 
Ray Dawson
Ranch Hand
Posts: 75
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahh.... I solved the problem myself



 
Roel De Nijs
Sheriff
Posts: 9117
75
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • 0
  • 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
  • 0
  • 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: 9117
75
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • 0
  • 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