File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Groovy and the fly likes Reading timeout property from database for a grail job Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Reading timeout property from database for a grail job" Watch "Reading timeout property from database for a grail job" New topic
Author

Reading timeout property from database for a grail job

Amit Sharma
Ranch Hand

Joined: Nov 22, 2005
Posts: 87
Hi

can i read timeout property from database for a grail job. Which cause it to start after that time. Here i am able to get value from database but its not running. But if i gave def timeout = 1000 , its working fine
i.e.

class GrailJob{

def timeout = 'value that i got from database in milliseconds'

def execute(){
println "YES its working "
}

}


Amit Sharma SCJP 1.4, SCWCD 5, OCUP-100(UML)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Reading timeout property from database for a grail job
 
It's not a secret anymore!