Results 1 to 3 of 3

Thread: fixedDelay from properties file?

  1. #1
    Join Date
    Dec 2008
    Posts
    20

    Default fixedDelay from properties file?

    I defined the timer as the following:
    Code:
    @Scheduled(fixedDelay=5000)
    public void doSomething() {
            ...
    }
    How can I read the interval:"5000" from a properties file?

    Or I have to use XML definition to support reading fixedDelay from a properties file.

    Thanks a lot.

  2. #2
    Join Date
    Dec 2008
    Posts
    4

    Default

    Quote Originally Posted by tomcatacec View Post
    I defined the timer as the following:
    Code:
    @Scheduled(fixedDelay=5000)
    public void doSomething() {
            ...
    }
    How can I read the interval:"5000" from a properties file?

    Or I have to use XML definition to support reading fixedDelay from a properties file.

    Thanks a lot.
    did you find out a solution for reading the interval from a property file ? I'm having the same issue.
    Cheers,

  3. #3
    Join Date
    Dec 2008
    Posts
    20

    Default

    Quote Originally Posted by vwggolf3 View Post
    did you find out a solution for reading the interval from a property file ? I'm having the same issue.
    Cheers,
    My workaround:
    change annotation into xml.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •