Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-785

ability to configure TimerStore class

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.0.beta1, 1.6.0
    • Component/s: None
    • Labels:
      None

      Description

      done through property (either by ejb, module or app): timerStore.class

        Activity

        Hide
        volkovd Dmitry Volkov added a comment -

        With -DtimerStore.class=org.apache.openejb.core.timer.DatabaseTimerStore timers are created but not executed at all.

        Show
        volkovd Dmitry Volkov added a comment - With -DtimerStore.class=org.apache.openejb.core.timer.DatabaseTimerStore timers are created but not executed at all.
        Hide
        romain.manni-bucau Romain Manni-Bucau added a comment -

        yep, this class is not yet implemented (where did you see it BTW?)

        Show
        romain.manni-bucau Romain Manni-Bucau added a comment - yep, this class is not yet implemented (where did you see it BTW?)
        Hide
        volkovd Dmitry Volkov added a comment -

        I saw it openejb-core-4.6.0-Snapshot.
        Does it mean that persistent timers will not work(not recovered after restart) in TomEE 1.6.0? If yes, could you please give an rough estimate when will it be implemented?

        Show
        volkovd Dmitry Volkov added a comment - I saw it openejb-core-4.6.0-Snapshot. Does it mean that persistent timers will not work(not recovered after restart) in TomEE 1.6.0? If yes, could you please give an rough estimate when will it be implemented?
        Hide
        romain.manni-bucau Romain Manni-Bucau added a comment -

        currently no idea. The ~good point is this jira allows you to provide your own implementation in your app (war typically) so you can do one matching your need, one super easy would be to copy memorytimerstore and replace maps by distributed maps like hazelcast.

        Show
        romain.manni-bucau Romain Manni-Bucau added a comment - currently no idea. The ~good point is this jira allows you to provide your own implementation in your app (war typically) so you can do one matching your need, one super easy would be to copy memorytimerstore and replace maps by distributed maps like hazelcast.
        Hide
        volkovd Dmitry Volkov added a comment -

        System property -DtimerStore.class=<classname> has no effect. Am I doing it right?

        Show
        volkovd Dmitry Volkov added a comment - System property -DtimerStore.class=<classname> has no effect. Am I doing it right?
        Hide
        romain.manni-bucau Romain Manni-Bucau added a comment -

        Hi,

        try with application.properties or module.properties (in WEB-INF IIRC)

        Show
        romain.manni-bucau Romain Manni-Bucau added a comment - Hi, try with application.properties or module.properties (in WEB-INF IIRC)

          People

          • Assignee:
            romain.manni-bucau Romain Manni-Bucau
            Reporter:
            romain.manni-bucau Romain Manni-Bucau
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development