Announcement Announcement Module
Collapse
No announcement yet.
fixedDelay from properties file? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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,

    Comment


    • #3
      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.

      Comment

      Working...
      X