Note that there are some explanatory texts on larger screens.

plurals
  1. POWiring multiple independent Spring Applications using Maven
    text
    copied!<p>My project consists of multiple Spring subprojects:</p> <ul> <li>Service1</li> <li>Service2</li> <li>Service3</li> </ul> <p>Every Service has multiple dependencies to other Beans inside, so every Service has an applicationContext.xml wiring the Service together. </p> <p>I made every subproject an standalone maven build and i thought i can create a AllServicesTogether Application to wire those Service{1..3} together.</p> <p>This works by adding maven dependencies to those Services.</p> <pre><code>&lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.myproject&lt;/groupId&gt; &lt;artifactId&gt;myproject-service{1..3}&lt;/artifactId&gt; &lt;version&gt;0.1-SNAPSHOT&lt;/version&gt; &lt;/dependency&gt; ... &lt;/dependencies&gt; </code></pre> <p>But inside the AllServicesTogether Application, all wiring of the SubServices is lost. I guess Subservices aren't compiled with the Subservice ApplicationContext, but use the AllServicesTogether ApplicationContext.</p> <p>The Idea is to encapsulate all wiring of SubSerivces and simply wire the AllServicesTogether by using: </p> <pre><code>&lt;beans ..&gt; &lt;bean class="org.myproject.service1.Service1"/&gt; &lt;bean class="org.myproject.service1.Service2"/&gt; &lt;bean class="org.myproject.service1.Service3"/&gt; &lt;/beans&gt; </code></pre> <p>I created those subprojects from the bigger project spending hours on it. Is it possible to use this wiring method or do i need to include the context.xml's from all those Services?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload