I really confused in understanding where the tomcat actually runs. Is it execute inside the JVM, which execute servlets. Or it has it’s own VM in executing servlet or JSP.
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Tomcat will run within the JVM, and servlets execute within the Tomcat process (in the same JVM).
Running catalina.sh (or .bat) will start up a new JVM for Tomcat to run in. You can load/run Tomcat programatically within an existing JVM if you require a webserver as part of a bigger application.