java - Detect when the serves is about to sleep on CloudBees -
i wrote rest server application using jersey, , deployed on cloudbees. since have free account server go sleep after 2 hours of inactivity. before happens save data on database; how detect sleep event on cloudbees server? answers!
getting application hibernate standard servlet container shutdown, servletcontextlistener can handle this. option have periodic timer task store data on db, application may crash various reason, , you'd them have data lost
Comments
Post a Comment