java - Payara micro - persistent timer -


is possible have persistent ejb timer service payara micro?

i have 2 or more application instances in cluster. there scheduled task (@schedule) in application. not instances run timer, 1 instance should run it, either one.

this should work persistent=true in @schedule like:

@schedule(second = "*/5", minute = "*", hour = "*", persistent=true) 

but... on deploy time receive message:

javax.ejb.createexception: persistent timers not supported in setup 

if deploy persistent=false, works, cluster instances execute timer:

@schedule(second = "*/5", minute = "*", hour = "*", persistent=false) 

does means should use full payara (glassfish) full jee support, or there way enable in payara micro? stick simple standard solutions, without custom code , 3th libraries.

for testing, run instances with:

java -jar payara-micro-4.1.1.162.jar --autobindhttp --deploy my.war 

thank in advance

persistent ejb timers powered hazelcast coming payara micro 163, due released soon!


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -