File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Dynamic File Update Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Dynamic File Update" Watch "Dynamic File Update" New topic
Author

Dynamic File Update

Ray Dawson
Ranch Hand

Joined: Sep 16, 2011
Posts: 75
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

Joined: Sep 16, 2011
Posts: 75
Ahh.... I solved the problem myself



Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5131
    
  12

Maybe you can tell how you solved it. It might be useful for other ranchers having same question/doubt/problem...


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Ray Dawson
Ranch Hand

Joined: Sep 16, 2011
Posts: 75
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
Bartender

Joined: Jul 19, 2004
Posts: 5131
    
  12

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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic File Update
 
Similar Threads
supported content types in jsp
Are SAX and DOM Parsers or APIs???
How to do XML to DB using Message Driven Bean?
Question about the Data tier
Help regarding devlopment of Proffesional stanalone application