title: How does DispatcherServlet work if we have multiple XML Configuration file?
body: <p><strong>Questions</strong></p>
  
  <p><em>How does DispatcherServlet work if we have multiple XML Configuration file so how does Spring Application Context loads them and acts on them ?</em></p>
  
  <p><strong>Scenario:</strong></p>
  
  <p>In my case, we have an application that is supposed to global that is application should have <code>AP{Asia-Pacific}, EM{Europ-Middleeast}, CA{Canada} and LA{Latin America}</code> Versions.</p>
  
  <p>Currently, we have Application for one region that is <code>EM</code>and its has its <code>XML Configuration File i.e, em-servelt.xml</code> and then there is generic <code>web.xml</code> file now for <code>AP region</code> we have another <code>ap-servlet.xml</code> file and by the way both <code>em-servlet.xml</code> and <code>ap-servlet.xml file</code> would have same bean names but they would be pointing to Controllers in different packages, so for example, em would be pointing to something like <code>com.em.DomainController</code> and ap would be pointing to <code>com.ap.DomainController</code>.</p>
  
  <p>So my question is </p>
  
  <p><em><strong>How is the request mapped to different controllers and how request is being recognized so that it should read from ap-servlet.xml or em-servlet.xml ?</em></strong></p>
  
  <p>I hope am able to clearly state my question. </p>