Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes How to invoke any applicaton with Tomcat 4.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to invoke any applicaton with Tomcat 4.1" Watch "How to invoke any applicaton with Tomcat 4.1" New topic
Author

How to invoke any applicaton with Tomcat 4.1

Ganesh Prakhya
Ranch Hand

Joined: May 05, 2004
Posts: 76
Hi All,

I installed Tomcat 4.1 as a Windows service and it is running fine soon after starting windows. My requirement is, when Tomcat starts and running I want to start any other application (For example a servlet) automcatically along with Tomcat. Is it possible to do?

Thanks & Regards,
Ganesh.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41173
    
  45
Check out the <load-on-startup> element of the <servlet> declaration in your web.xml. You can use it to run a servlet right after the container has started.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to invoke any applicaton with Tomcat 4.1
 
Similar Threads
Memory Usage Issue
Calling a servlet on startup
Tomcat: digester error on startup
JSP and JavaBeans
Tomcat 4.1 on Windows XP