In my application I am using ContextLoaderListener to load context files from many jars using:
contextConfigLocat
My best guess is to use autowire-ing with required false. Don't know how you can express this in XML but using annotation configuration this would look like:
@Autowired(required=false)