1- I created a web service which I want it to run automatically when Tomcat starts. I want to know how I can do this in simple way (as i'm knew in Java development).
2- I want this web service's method to run periodically (every 30sec). What should I do to have this.
I'm using eclipse/Tomcat 7.0,
Appreciate your support as I'm still did not understand the concept of Servlet, and how to use my web service as a servlet. Or if I can't forget about web service and I need something else to have my above requests done.