ok, looked quickly

the easier would be to
implement org.apache.openejb.core.timer.DatabaseTimerStore and to add it as
value to the property timerStore.class in application.properties

do you want to have a try? since it should be able to be provided in the
app you can implement a store more "fun" relying on NoSQL database instead
(would be easier since you can simply serialize the data inside instead of
needing to convert it into sql).

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/4/22 <[email protected]>

> Here it is: https://github.com/eiskonzept/tomee.git
> There is preinitialized hsqldb database in the project.
>
> To reproduce the issue:
>
> 1. package the project: mvn package
> 2. start tomee plugin with node1 profile: mvn tomee:run -P node1
> 3. open http://localhost:8080/tomee_replication-1.0/schedule.xhtml in
> browser
> 4. push "Schedule timer" button -> timer is scheduled and listed on the
> page. Timer executed every second and logged in console.
> 5. stop tomee instance.
> 6. start tomee instance and check console log. Timer is restored and
> executed
> 7. open http://localhost:8080/tomee_replication-1.0/schedule.xhtml ->
> Timer is not listed. Method TimerService.getTimers() returns empty list.
> There is no possibility to unschedule old timers.
>
>
> -----Ursprüngliche Nachricht-----
> Von: Romain Manni-Bucau [mailto:[email protected]]
> Gesendet: Montag, 22. April 2013 10:18
> An: [email protected]
> Betreff: Re: AW: Java EE Scheduler implementation in TomEE
>
> can be an embedded test i think with a file database (hsqldb/h2) doing a
> start/stop of an EJBContainer
>
> that said a small war project can be fine too, the main constraint are:
> * buildable on my side easily
> * runnable easily
>
>

Reply via email to