I need to create a persistent Java based application that will run at set intervals. If this was strictly running under Linux I could create a CRON job but it needs to run under Windows as well. Obviously I could use some sort of service wrapper but what about using a Servlet that simply never handles any GET/POST requests? The advantage in my mind is that both Windows and Linux has Servlet containers like Tomcat (At least in my environment). One code base that works in both environments and Tomcat itself will ensure that the application runs persistently like a service.
Is this a good use of a Servlet or am I straying outside of it's intended use?