uCosminexus Application Server, EJB Container Functionality Guide
The functionality used for operating the Timer Service is explained below. The operation functionality consist of the following two types:
Customize the properties of a J2EE server to specify the functionality. For details on the properties to be set up, see 2.12.9 Settings in the execution environment.
Specify the number of threads to be executed concurrently in the entire J2EE server for processing callback of the timeout method. This is called the maximum number of callback threads.
When multiple EJB timers timeout concurrently, depending upon the maximum number of callback threads of the timeout method, the operation will be as follows:
The following figure shows the relationship between the settings for the maximum number of callback threads and callback processing:
Figure 2-25 Relationship between the settings for the maximum number of callback threads and callback processing
In this figure, the settings are specified so that EJB timer 2 will be timed out one minute after the timeout of the EJB timer 1 occurs. When the maximum number of callback threads is set to 1, the callback processing of EJB timer 2 will start after the callback processing of the EJB timer 1 finishes. When the maximum number of callback threads is specified as 2, two callback processes can be executed concurrently, therefore, the callback processing of EJB timer 2 is started one minute after the EJB timer 1, as per the settings.
In the case of a failure in calling back the timeout method, retry callback.
Callback may fail in the following cases:
Set the following settings for retrying callback:
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.