In our application start-up, we are creating one application context having its own bean configuration xml. Then depending up on certain logic, we would need to dynamically load/import the second bean configuration into the existing application context.
One option is to close the existing application context and creating a new application context by importing both the bean definition xml files. But closing the application context takes time ( i.e destroying beans/executors etc ) , is there a way to merge both the application context without closing the existing one.