title: Divide Spring configuration across multiple projects
body: <p>we have quite a few projects that use the same codebase (backend code).
  Just the frontend tends to be different.
  We decided that the best approach would be to seperate backend and frontend into different projects: <strong>Engine</strong> and <strong>Project_name</strong></p>
  
  <p>Now these are Spring-projects. So it would only seem logical if we divide the Spring configurations aswell:
  <strong>Database.xml</strong>, <strong>Services.xml</strong> would belong to the project <strong>Engine</strong>.
  And a specific <strong>Frontend.xml</strong> would belong to <strong>Project_Name</strong>.
  To link these up, I would need a generic <strong>SpringBeans.xml</strong> that imports all of these XML's.</p>
  
  <p>I tried following directory structure:</p>
  
  <p><strong>Engine Project</strong></p>
  
  <ul>
  <li>Config
  <ul>
  <li><em>Spring</em>
  <ul>
  <li>Database.xml</li>
  <li>Services.xml</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p><strong>Project_Name Project</strong></p>
  
  <ul>
  <li>Config
  <ul>
  <li>SpringBeans.xml</li>
  <li><em>spring</em>
  <ul>
  <li>Frontend.xml</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>The contents of SpringBeans.xml are simply:</p>
  
  <pre><code>    &lt;import resource="spring/Database.xml"/&gt;
      &lt;import resource="spring/Services.xml"/&gt;
      &lt;import resource="spring/Frontend.xml"/&gt; 
  </code></pre>
  
  <p>I set up Eclipse so the Project_Name project references the Engine project.
  When I start it, SpringBeans.xml gets found, however the XML files in the Engine project aren't found (FileNotFoundException).
  I'll also note that before splitting up the Engine and Frontend code into different projects, the principle of importing other XML files worked like a charm.</p>
  
  <p>So my question to you: Is it possible to make different Spring configrations in different projects play together nicely?</p>