I would like to set spring up to kick off a method every n seconds. But in doing so, n can be adjusted while running
Method to kick off: PingInvoker.ping()
public class PingInvoker
{
public void ping()
{
List<Server> svr = Manager.getList();
for (Server i : svr)
i.ping();
}
}
Application Context:
???
}
You have to deploy
PingInvokeras singleton bean and specify suchperiodas you want