title: How Spring Ioc container interacts with Tomcat container
body: <p>I am familiar with the Spring Framework and have done some work in it.</p>
  
  <p>In one of my interviews, I was asked "there is a web application deployed in <em>Apache Tomcat</em>; tell me how does the "Tomcat container" (used for servlets) interact with "Spring IoC container" (used for Spring beans)?"</p>
  
  <p>I couldn't understand what the interviewer meant by that and was left speechless. Can someone please clarify what this question was about and what a reasonable answer to it might be?</p>