944,173 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 4125
  • JSP RSS
Mar 13th, 2007
0

Auto call to a servlet file inside Tomcat 4.1

Expand Post »
Hi Experts,

I have written a Servlet file which sends email to a user .When if i run that servlet file in command Prompts it sends a email .Now i want that servlet file to be automatically executed inside my Tomcat server within a stipulated Time . Sothat it can send automatic reminder emails .How is it Possible..pls Help me . I have tried a lots but still i can't make it out. I also add listener in my web.xml file then also i can't get my requirements.....Pls help me out

Thanx in Advance
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jeet_portal is offline Offline
18 posts
since Jan 2007
Mar 14th, 2007
0

Re: Auto call to a servlet file inside Tomcat 4.1

it's easy. Start a Timer inside the servlet init method, set the servlet to load on web application startup, and away you go.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Mar 16th, 2007
0

Re: Auto call to a servlet file inside Tomcat 4.1

Click to Expand / Collapse  Quote originally posted by jwenting ...
it's easy. Start a Timer inside the servlet init method, set the servlet to load on web application startup, and away you go.

Yes i can start a timer inside the servlet init Method but how to set the servlet sothat it will startup automatically in my web application. Do i use listener in web.xml or any other way are there so that my servlet will automatically load on web application
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jeet_portal is offline Offline
18 posts
since Jan 2007
Mar 17th, 2007
0

Re: Auto call to a servlet file inside Tomcat 4.1

check the servlet specification. There's a simple flag you can set on a servlet declaration in the web.xml that causes the container to load the servlet during application startup.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: How to Auto refresh a part of a page
Next Thread in JSP Forum Timeline: variable Initialisation in JSP





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC