try
{
Date first = new Date(System.currentTimeMillis() + 1000);
Date last = new Date(System.currentTimeMillis() + 11000);
ReplyInfo info = new ReplyInfo(msgID, replyTo, first, last);
Timer timer = ts.createTimer(first, 1000, info);
log.info("Timer created with a timeout: " + first
+ " and with info: " + msgID
+ ", handle: "+timer.getHandle());
}
catch (Exception e)
{
log.info("Failed to init timer", e);
}