This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes Methods to start Tomcat from an application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Methods to start Tomcat from an application" Watch "Methods to start Tomcat from an application" New topic
Author

Methods to start Tomcat from an application

Pat Metheny
Greenhorn

Joined: Mar 28, 2003
Posts: 13
Hello all,
My question is related to the methods used to start Tomcat from inside the application. So far I've seen that method #1 (see below) is widely used. I've been thinking to use a simpler method for doing this so I wrote methdod #2 (see below). Is the overhead (Class.forName(), getMethod(), invoke()) from method #1 really necessary ?

Method #1:
""""""""""

Method #2:
""""""""""

TIA,
Pat
 
 
subject: Methods to start Tomcat from an application