Migration issue from EJB timer to infinispan-timer-management

65 views
Skip to first unread message

Pramod Singh

unread,
Aug 18, 2025, 9:38:28 AMAug 18
to WildFly
Hi,
I am migrating EJB timer to infinispan-timer-management in wildfly36.0.1.Final and using below changes but in the same time multiple nodes are executing the timer service causing ejb timer failure. Please suggest how to restrict timer service to execute by single node at a time in multi node cluster.

/subsystem=ejb3/service=timer-service:undefine-attribute(name=default-persistent-timer-management)
/subsystem=ejb3/service=timer-service:undefine-attribute(name=default-transient-timer-management)
/subsystem=ejb3/service=timer-service:write-attribute(name=thread-pool-name, value=default)
/subsystem=ejb3/service=timer-service:undefine-attribute(name=default-data-store)

/subsystem=distributable-ejb/infinispan-timer-management=infini-timer:add(cache-container=ejb, cache=persistent)
/subsystem=ejb3/service=timer-service:write-attribute(name=default-persistent-timer-management, value=infini-timer)

Joerg Baesner

unread,
Aug 18, 2025, 10:11:00 AMAug 18
to Pramod Singh, WildFly
Hi,

Are you only using persistent timers? 

Best regards,
  Joerg



--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wildfly/b9b0add4-69a4-442c-9f75-d871168f461cn%40googlegroups.com.

Pramod Singh

unread,
Aug 19, 2025, 3:01:39 AMAug 19
to WildFly
yes, Using only persistent time.

Paul Ferraro

unread,
Aug 19, 2025, 3:53:47 AMAug 19
to Pramod Singh, WildFly
When using infinispan-timer-management, the  behaviour of persistent and/or non-persistent timers will be determined by the referenced cache configuration from the Infinispan subsystem. Can you attach that?

Pramod Singh

unread,
Aug 19, 2025, 11:45:27 AMAug 19
to WildFly
Hi Paul Ferraro,

Using the default cache configuration provided by the infinispan subsystem. 
ex: /subsystem=infinispan/cache-container=ejb/distributed-cache=persistent:add()

Paul Ferraro

unread,
Aug 19, 2025, 12:24:02 PMAug 19
to WildFly
Assuming you are using one of the stock configuration profiles, the default cache configuration provided by the infinispan subsystem will be different depending on which profile you are using.
Please attach.

Pramod Singh

unread,
Aug 20, 2025, 9:35:21 AMAug 20
to WildFly
sorry, i didnot get you. please explain what do you mean by profile? i don't have any other changes apart from above mentioned cli command.
Please let me know, if i missing something.

Pramod Singh

unread,
Aug 21, 2025, 8:20:15 AMAug 21
to WildFly
FYI , using full-ha profile

Pramod Singh

unread,
Sep 1, 2025, 1:47:49 AM (5 days ago) Sep 1
to WildFly
Paul Ferraro,
Could you please share any documentation to implement Infinispan timer management with Full-ha profile using JDBC store.
It would be very helful to implement the new timer management in wildlfy 36


Paul Ferraro

unread,
Sep 1, 2025, 8:55:21 AM (4 days ago) Sep 1
to WildFly
First, we need to figure out your issue with cluster formation.  Can you attach all INFO+ logs from org.jgroups and org.infinispan ?
Whether Infinispan is configured with a persistent store or not still requires that your cluster members are able to establish a consistent cluster view.

Pramod Singh

unread,
Sep 3, 2025, 6:59:44 AM (3 days ago) Sep 3
to WildFly
There is no changes in default configuration of Jgroups and Infinispan. Default cache EJB is using with below changes.
Using full-ha profile.
/subsystem=infinispan/cache-container=ejb/distributed-cache=persistent:write-attribute(name=owners, value=2)
#/subsystem=infinispan/cache-container=ejb/distributed-cache=persistent/component=persistence/file-store=*:remove
/subsystem=infinispan/cache-container=ejb/distributed-cache=persistent/component=locking:add(isolation=REPEATABLE_READ)
/subsystem=infinispan/cache-container=ejb/distributed-cache=persistent/component=transaction:add(mode=BATCH)
/subsystem=infinispan/cache-container=ejb/distributed-cache=persistent/component=persistence:add(passivation=false, attributes={string-keyed-jdbc-store={data-source="java:/jdbc/abc_ds", dialect=POSTGRES, table-name="jboss_ejb_infini_timer", shared=true, id-column={name="id", type="VARCHAR"}, data-column={name="payload", type="BLOB"}, timestamp-column={name="created", type="BIGINT"}}}) --force


Reply all
Reply to author
Forward
0 new messages