Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-17287

Cannot persist ejb timers into database


    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 27.0.1.Final, 28.0.0.Beta1
    • 27.0.0.Final
    • EJB
    • None
    • Hide

      Use a simple configuration like this :


                  <timer-service default-persistent-timer-management="persistent" default-transient-timer-management="transient" default-data-store="database-store">
                          <file-data-store name="default-file-store" path="timer-service-data" relative-to="jboss.server.data.dir"/>
                          <database-data-store name="database-store" datasource-jndi-name="java:jboss/datasources/ExampleDS" partition="timer"/>


      Use a simple configuration like this :               <timer-service default -persistent-timer-management= "persistent" default - transient -timer-management= " transient " default -data-store= "database-store" >                 <data-stores>                     <file-data-store name= " default -file-store" path= "timer-service-data" relative-to= "jboss.server.data.dir" />                     <database-data-store name= "database-store" datasource-jndi-name= "java:jboss/datasources/ExampleDS" partition= "timer" />                 </data-stores>             </timer-service>  
    • ---
    • ---

      Setting database data store for ejb timers / timer-service causes this error :

      13:02:45,844 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
          ("subsystem" => "ejb3"),
          ("service" => "timer-service"),
          ("database-data-store" => "database-store")
      ]) - failure description:

      {     "WFLYCTL0412: Required services that are not installed:" => ["org.wildfly.ejb3.timer-service"],     "WFLYCTL0180: Services with missing/unavailable dependencies" => ["org.wildfly.ejb3.timer-service.timer-persistence-service.database-store is missing [org.wildfly.ejb3.timer-service]"] }

      13:02:45,860 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
      WFLYCTL0184:    New missing/unsatisfied dependencies:
            service org.wildfly.ejb3.timer-service (missing) dependents: [service org.wildfly.ejb3.timer-service.timer-persistence-service.database-store] 

      13:02:45,891 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("internal-model-validation") failed - address: ([]) - failure description: "WFLYCTL0105: default-persistent-timer-management is invalid in combination with default-data-store"
      13:02:45,891 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details. - Server configuration file in use: standalone-full-ha.xml

      This used to work on previous versions of Wildfly (26.X for example).

            pferraro@redhat.com Paul Ferraro
            alessandro.moscatelli@live.com Alessandro Moscatelli (Inactive)
            0 Vote for this issue
            5 Start watching this issue