IntelliJ Java IDE
The moose likes Tomcat and the fly likes Methods to start Tomcat from an application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply 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
 
Threads others viewed
Methods to start Tomcat from an application
Https url connection ArrayIndeoutofBounds Exception java
problem with tomcat embedded application
ArrayIndexOutOfBoundsException
Getting a class name without an instantiated object
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture