diff --git a/modules/status/src/main/java/org/jpos/ee/status/Monitor.java b/modules/status/src/main/java/org/jpos/ee/status/Monitor.java index e69414044e..8c8ace763f 100644 --- a/modules/status/src/main/java/org/jpos/ee/status/Monitor.java +++ b/modules/status/src/main/java/org/jpos/ee/status/Monitor.java @@ -28,6 +28,7 @@ import org.jpos.q2.QBeanSupport; import org.jpos.core.XmlConfigurable; import org.jpos.core.ConfigurationException; +import org.jpos.core.Environment; import org.jdom2.Element; import org.hibernate.HibernateException; @@ -82,10 +83,10 @@ private void registerTask (Element e) qf.setConfiguration (obj, e); timer.schedule ( new MonitorTimerTask ( - e.getAttributeValue("id"), + Environment.get(e.getAttributeValue("id")), (MonitorTask) obj), - getLong (e.getAttributeValue ("delay")), - getLong (e.getAttributeValue ("period")) + getLong (Environment.get(e.getAttributeValue ("delay"))), + getLong (Environment.get(e.getAttributeValue ("period"))) ); } private long getLong (String l)