aspose file tools*
The moose likes Tomcat and the fly likes Start up class in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Start up class in tomcat" Watch "Start up class in tomcat" New topic
Author

Start up class in tomcat

Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
Hi,
I have a JAVA class ..not a servlet ...and I want to mak up this class as a start up class in Tomcat5.0.19.

How do I do that
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
I understand your question to be: how to create an instance of a Java class when Tomcat is started.
Tomcat will automatically create instances of servlets that are marked with a web.xml entry like:

see the entry for the default servlet in conf/web.xml for an example.
You can have then have the servlet init method create an instance of the class.
If that is not what you mean, please explain what this class is for.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Start up class in tomcat
 
Similar Threads
Startup Scripts in Linux
Start Up asynchronous
Struts Plugin - Getting webapplicationcontext or service factory in struts plug-in class
where do i get started
environment variable problem