Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Methods to start Tomcat from an application

 
Pat Metheny
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic