title: How to load multiple jax-ws web services inside a single spring container
body: <p>We are working on a SOA Project consisting of multiple web services.</p>
  
  <p>Each web service is based on Metro JAX-WS Framework and internally uses spring and hibernate.Each web service loads as a web-application inside a separate spring container.</p>
  
  <p>This means that our deployment architecture consists of multiple web-applications each running a different service.</p>
  
  <p>However we are facing some performance issues because each web-application loads its own spring container/hibernate session factory.</p>
  
  <p>Possible alternatives:</p>
  
  <ol>
  <li>Single web-application single spring context</li>
  <li>Multiple web-applications single spring context</li>
  </ol>
  
  <p>All our web services will always run together on a single server. What will be the best architecture for our case? And how to achieve the same i.e. how to use a single spring context with multiple web services?</p>