title: Using spring beans from other modules?
body: <p>I imagine this is simple - but I can't find the right combination of search terms to get an answer. If I have a multi-module application, how do I get the beans in module A available to the beans in module B.</p>
  
  <p>The project setup looks a little like this:</p>
  
  <pre><code>project.ear/module-a.jar/resources/beans.xml
  project.ear/module-a.jar/java/foo/bar.class
  project.ear/module-b.war/java/foo/barFactory.class
  </code></pre>
  
  <p>The beans.xml isn't accessible by either classpath, or filesystem. Is there a way to do this? Or should I be doing everything differently?</p>