Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Migration issue on EJB timer from wildfly 26.1.3.Final to 34.0.1.Final

127 views
Skip to first unread message

Pramod Singh

unread,
Dec 25, 2024, 1:59:35 PM12/25/24
to WildFly
Hi 
I am new into wildfly and currently working on migration from wildfly 26.1.3.Final to widlfly 34.0.1.Final  and also migrating our existing EJB timer with 34.0.1.Final as suggested in wildlfy 27. but somehow this latest EJB timer not working and unable to add as susbsystem in wildfly. 

Existing Timer implementation in wildfly 26.1.3.Final as below:

/subsystem=ejb3/service=timer-service/database-data-store=abc-timer-data-store:add(datasource-jndi-name=java:/jdbc/abc_TIMER, database=postgresql, partition=vis, allow-execution=true)

/subsystem=ejb3/service=timer-service:write-attribute(name=default-data-store, value=abc-timer-data-store)

Note: java:/jdbc/abc_TIMER datasource is already defined.

Implemented New Ejb timer in wildfly 34.0.1.Final as per wildfly 27 suggestion as below .


/subsystem=infinispan/cache-container=ejb/distributed-cache=abc_timer:add()
/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/store=file:add(purge=false)

/subsystem=infinispan/cache-container=ejb/distributed-cache=persistent/store=jdbc:add(datasource-jndi-name=java:/jdbc/abc_TIMER, passivation=false, preload=true, purge=false)

/subsystem=distributable-ejb/infinispan-timer-management=persistent:add(cache-container=ejb, cache=persistent)

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

Could you please suggest , what is wrong here in the implementation.

Thanks In Advance.

Pramod Singh

unread,
Jan 9, 2025, 3:11:20 AMJan 9
to WildFly
Your suggestion would be appreciated. Please suggest me what i am missing here.

Paul Ferraro

unread,
Jan 9, 2025, 3:35:25 PMJan 9
to WildFly
What exactly do you mean by "not working and unable to add as susbsystem in wildfly"?
I suspect you mean that one or more of the commands below fails to execute?  If so, can you paste those exceptions?

Pramod Singh

unread,
Jan 14, 2025, 7:42:01 AMJan 14
to WildFly

Getting below error while deploying the war...

ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "abc-service.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"org.wildfly.clustering.infinispan.cache.ejb.\"abc-service-.war.StatsDeleteSchedule.PERSISTENT\"" => "org.infinispan.commons.CacheConfigurationException: ISPN000659: Component ComponentWrapper{name=org.infinispan.persistence.manager.PersistenceManager, instance=org.infinispan.persistence.manager.PersistenceManagerImpl@e053bb2, status=FAILED} failed to start
    Caused by: org.infinispan.commons.CacheConfigurationException: ISPN000659: Component ComponentWrapper{name=org.infinispan.persistence.manager.PersistenceManager, instance=org.infinispan.persistence.manager.PersistenceManagerImpl@e053bb2, status=FAILED} failed to start
    Caused by: java.util.concurrent.CompletionException: org.infinispan.persistence.spi.PersistenceException: ERROR: type \"binary\" does not exist
  Position: 97
    Caused by: org.infinispan.persistence.spi.PersistenceException: ERROR: type \"binary\" does not exist
  Position: 97
    Caused by: org.postgresql.util.PSQLException: ERROR: type \"binary\" does not exist

Claudio Weiler

unread,
Jan 14, 2025, 2:13:34 PMJan 14
to WildFly
"org.postgresql.util.PSQLException: ERROR: type \"binary\" does not exist"

This indicates an persistence mapping error. Are you connecting to a postgres server?

Pramod Singh

unread,
Jan 15, 2025, 10:07:08 AMJan 15
to WildFly
yes, using postgres server

Pramod Singh

unread,
Jan 15, 2025, 10:08:20 AMJan 15
to WildFly
while deploying the wildfly server with EJB timer,  its throwing above error while connecting postgres server.

Bartosz Baranowski

unread,
Jan 20, 2025, 5:18:06 AMJan 20
to WildFly
Either wrong user perms or dialect?

https://groups.google.com/g/wildfly/c/YNM5w0919iY

Paul Ferraro

unread,
Jan 20, 2025, 8:48:10 AMJan 20
to WildFly
> /subsystem=infinispan/cache-container=ejb/distributed-cache=persistent/store=jdbc:add(datasource-jndi-name=java:/jdbc/abc_TIMER, passivation=false, preload=true, purge=false)

datasource-jndi-name is not a valid parameter for this operation.

Additionally, you need to specify dialect=POSTGRES
Reply all
Reply to author
Forward
0 new messages