title: Spring: Okay to have two contexts - web & backend?
body: <p>I have a spring-base web app with a spring-based backend. Currently, the integration is done in a stupid way of manual copying the backend .xml's to the web app resources and merging.</p>
  
  <p>I was wondering whether Spring is ready to have a bean which would be another <code>ApplicationContext</code>, and whether it can get beans from it; also if it handles bean name collisions - e.g. if I can assign a namespace to the "imported" beans.</p>
  
  <p>Or - what is the best practice for this case?</p>
  
  <p>Thanks,
  Ondra.</p>