private void initProperties() {
try {
// Check for property settings from domain.xml
ServerContext sc = ApplicationServer.getServerContext();
EjbContainer ejbc = ServerBeansFactory.
getConfigBean(sc.getConfigContext()).getEjbContainer();
EjbTimerService ejbt = ejbc.getEjbTimerService();
if( ejbt != null ) {
String valString = ejbt.getMinimumDeliveryIntervalInMillis();
long val = (valString != null) ?
Long.parseLong(valString) : -1;
if( val > 0 ) {
minimumDeliveryInterval_ = val;
}
valString = ejbt.getMaxRedeliveries();
val = (valString != null) ? Long.parseLong(valString) : -1;
// EJB 2.1 specification minimum is 1
if( val > 0 ) {
maxRedeliveries_ = val;
}
valString = ejbt.getRedeliveryIntervalInternalInMillis();
val = (valString != null) ? Long.parseLong(valString) : -1;
if( val > 0 ) {
redeliveryInterval_ = val;
}
// If the system property com.sun.ejb.timer.ReadDBBeforeTimeout
// is defined by the user use that the value of the flag
// performDBReadBeforeTimeout
foundSysPropDBReadBeforeTimeout =
getDBReadBeforeTimeoutProperty();
// The default value for ReadDBBeforeTimeout in case of PE
// is false. For SE/EE the correct default would set when the
// EJBLifecyleImpl gets created as part of the EE lifecycle module
setPerformDBReadBeforeTimeout( false );
}
// Compose owner id for all timers created with this
// server instance.
InstanceEnvironment server = sc.getInstanceEnvironment();
String serverName = server.getName();
ownerIdOfThisServer_ = serverName;
} catch(Exception e) {
logger.log(Level.FINE, "Exception converting timer service " +