Timeout Called 4 Times In A Calendar-Based Programmatic Timer (Doc ID 1544207.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version 12.1.1.0 and later
Information in this document applies to any platform.

Symptoms

When the timer expires the @Timeout method is called 4 times.
This happens when the timer is cancelled and new timer is created with:
TimerService timerService;
Timer timer = timerService.createCalendarTimer(se, new TimerConfig("TIMER1", false));

It works fine when a new timer is created without second parameter new TimerConfig():
Timer timer = timerService.createCalendarTimer(se);

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms