Added log4j config and put in timertask for keeping the app alive