I guess this will remind every one of automatically executing some code at specific time. Most of the times I have seen requirements for executing an application code on time based, suddenly this will be coming to your mind javax.ejb.TimedObject. Now the set of options and issues arrive, normally java.ejb.TimedObject is available in EJB 2.1, most of the time we end up clients having lesser versions, and you cannot guarantee and portability because of this version issue. Even I have seen many open source ways to tackle this. Like Quartz. But again attaching this source code with your project might attract some license issue. Well, down to earth we have a simple way for it, a simple J2EE timer. We might need this fellow javax.util.Timer. I have seen many posts in SDN asking for a way to execute a set of code before deployment, for Database registration, Auto login and Automated Webservice clients etc… I would suggest this as the best possible way to create a simple timer. Create a Servlet with a Context Listener once the Servlet is initialized the ContextListeners are notified. Here give the java.util.Timer. Again this can be given in your init method. (life cycle method of servlet and initialize the servlet on startup). Enough stories, So Let us go little bit Hands On!!. Create a Web Module Project. Now our project is ready. Right Click and New-> Listener Now let’s try to create a Servlet Context Listener. Now give the implementation for the Timer method as given below. This timer is now ready for adding this to an Application Project. Build and deploy this servlet in our favorite J2EE container. Now let us test your server trace or log file. Our timer is ready. “#Error” is because we are using System.Error stream to print the response. So our Timer is ready no version or vendor to stop you. Enjoy coding!