Hi, In my application I need to run a servlet after fixed time interval. Now I've a thread running as a daemon process, which I plan to use to call this servlet. The problem is how to invoke the servlet through that thread, a simple java class?
What does the Servlet do? If you are calling a servlet from a process than I assume any GUI output is not relevant (unless your process is parsing any generated HTML). You might consider, if its possible, to move the common functionality needed in the servlet and by your process to a plain old java object so both can use it regardless how its invoked.
Otherwise to get your servlet to do whatever it does you need to send it an HTTP request. You could use a Timer object to do this via the classes in the java.net package.