Introduction In cases when it is needed to run application in background and to start whenever system starts then it is required to make it a service. In windows platform an application needs to have service capabilities such as start, stop and status to run it a service. For java applications this capability is not inherent and a wrapper application is needed to achieve this. Apache Commons-Daemon project is one common tool for this. Steps 1- Java Application needs to implement org.apache.commons.daemon.Daemon interface. public class ServiceWrapper implements Daemon { private final static Logger logger = LoggerFactory . getLogger ( ServiceWrapper . class ); private static final ServiceWrapper serviceWrapper = new ServiceWrapper (...
Software Engineering experiences and best practices