Questions tagged [ejb-timer]

EJB Timer Services are services that are provided by the container (or the Application Server) and developers can take advantage of the timer services by registering one or more enterprise beans for time-based notification.

21 questions
7
votes
2 answers

WFLYEJB0043: A previous execution of timer [timer] is still in progress, skipping this overlapping scheduled execution at [time]

I have defined some persistent timers in a singleton EJB as follows (using WildFly 9.0.2 final). @Startup @Singleton @Lock(LockType.READ) public class BackgroundJobManager implements BackgroundJobService { @Schedule(dayOfMonth = "1", month =…
Tiny
  • 27,221
  • 105
  • 339
  • 599
7
votes
1 answer

Timer is creating multiple timer instances

This a real simple issue I guess but I am not able to figure why it happens so though. I have an implementation of an EJB timer which uses @Singleton annotation i.e. a singleton timer. I have set it to run after every 5 mins. The code looks…
TusharPanda
  • 211
  • 2
  • 14
3
votes
2 answers

Timer restoring error in WildFly 8.2

After upgrading to WildFly 8.2 from JBoss 5.1, I got next error logs. At the same time - all works. 2015-07-13 18:28:35,201 EJB default - 2 ERROR [org.jboss.as.ejb3] JBAS014129: Could not restore timer from…
Rustam
  • 1,397
  • 1
  • 13
  • 17
2
votes
0 answers

How do I change callerPrincipal from EJB timer?

My EJB timer always runs with UNAUTHENTICATED user. I tried to put @RunAs but did not work. I tried to change the value with reflection and did not work, I need call a remote EJB from this and I need a user that has permission. @Resource private…
Gustavo Rozolin
  • 1,070
  • 2
  • 13
  • 21
1
vote
1 answer

How to setup an EJB timerDataSource in Open Liberty

I try to deploy a Java EE Application containing several EJB Timer Services (with persistence=true). The server complains that no datasource was defined: Caused by: javax.ejb.EJBException: See nested exception; nested exception is:…
Ralph
  • 4,500
  • 9
  • 48
  • 87
1
vote
0 answers

EJBTimerService stop working

I have a question about EJBTimerService. EJBTimerService is central controller, which the use java.util.Timer. java.util.Timer jdkTimer = ejbContainerUtil.getTimer(); jdkTimer.schedule(timerTask, timerExpiration); My problem is …
Marat
  • 17
  • 1
  • 7
1
vote
2 answers

Multi server application reading data from same table

I have an application running on two different server instances. Application has a singleton EJB which has timer set to run after every one minute. The method in EJB reads records from table deletes it and publishes it over the queue (all part of…
1
vote
1 answer

Infinite loop with thread sleep vs EJB 3.1 Timers in WebSphere 8: backpressure

I have a requirement to read a Database table process the data (dataCleanser) to, increase the throughput, I implemented EJB timers (non persistent) that wake up every 5 minutes (10 of them) and do the above work. The problem is 'back pressure',…
vamsi-vegi
  • 305
  • 1
  • 3
  • 16
1
vote
0 answers

MQ Queue transaction not rolled back in a 2 phase transaction

I have an EJB timer (EJB 2.1) which has bean managed transaction. The timer code calls a business method which deals with 2 resources in a single transaction. One is database and other one is MQ queue server. Application server used is Websphere…
0
votes
1 answer

JBoss timer clustered store not starting on Oracle

I'm trying to configure a clustered store for EJB timers with JBoss EAP 7.4 (patched to JBoss EAP 7.4.5.GA WildFly Core 15.0.13.Final-redhat-00001). Everything is working fine when I use my Postgres datasource and the clustered store as…
Khain
  • 875
  • 2
  • 8
  • 11
0
votes
1 answer

Is it possible to skip any missed @schedule events instead of catching them up?

Using Websphere 9, I have a schedule service, e.g: @Schedule(minute="30", hour="6-20", dayOfWeek="Mon-Fri", dayOfMonth="*", month="*", year="*", info="TimerName", persistent=true) public void scheduledTimeout(final Timer t) { // do…
simonalexander2005
  • 4,338
  • 4
  • 48
  • 92
0
votes
2 answers

how to implement EJBTimer (persistant) in Open Liberty

Product name: Open Liberty Product version: 20.0.0.7 Product edition: Open is it possible to implement persistent ejbtimers on filesystem based default derby DB, using embedded.derby.DB I installed derby in /tmp/derby, configured server.xml with…
Daniyal
  • 11
  • 2
0
votes
1 answer

What is meaning of this Scheduler expression -> *~*~*~*~*/6~0~0?

What is meaning of this Scheduler expression. Not sure is it a Quartz Expression or timer service of ejb but i am sure the projects are using among this. *~*~*~*~*/6~0~0 *~*~*~*~5~15~0 So not able to understand especially the one */6 Could anyone…
fatherazrael
  • 5,511
  • 16
  • 71
  • 155
0
votes
2 answers

How to create a calendar-based schedule using jberet-ui?

Im using jberet-ui (built from master branch of https://github.com/jberet/jberet-ui.git) embedded in a shaded war with jberet-rest-api, jberet-rest-common, jberet-schedule-executor and jberet-schedule-timer version 1.4.0.Final as dependencies. When…
cghislai
  • 1,751
  • 15
  • 29
0
votes
1 answer

What's the point of defining Timer on MDB Message Driven Bean?

What's the point of defining Timer on MDB Message Driven Bean ? Is it anyhow different from a timer on SLSB stateless sesstion bean or Singleton bean? MDB are intended form message processing, why would I want to clutter them with timers? Slsb or…
bastiat
  • 1,799
  • 2
  • 19
  • 38
1
2