File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Execute Block of code using core java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Execute Block of code using core java" Watch "Execute Block of code using core java" New topic
Author

Execute Block of code using core java

aresh babu
Ranch Hand

Joined: Aug 31, 2008
Posts: 65
Hi,

i have a requirement that i need to execute a block of code for every 30minutes using core java only.Please let me know how can i do it?

Thanks in advance.

Regards
Aresh
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18108
    
  39


For one task.... try java.util.Timer

For many tasks, and more complex requirements... try java.util.concurrent.ScheduledThreadPoolExecutor


Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Execute Block of code using core java
 
Similar Threads
i want excute top command in linux using java
To enable landscape finish for taking printout using java script
return of the try-catch
Purpose of Finally Block
integer command line arguments?