Nov 28th, 2007, 07:31 AM
So I have a common project, that includes a commonApplicationContext.xml, which includes a AnnotationSessionFactoryBean and sets its annotatedClasses. I have a new project that uses the common project and its commonApplicationContext.xml as well as its own applicationContext.xml.
Is there a way to append the AnnotationSessionFactoryBean's annotatedClasses in the applicationContext.xml without having to copy-and-paste it from the commonApplicationContext.xml?
Nov 28th, 2007, 07:56 AM
Depending on how exactly you have your configuration set up, but one of parent/child bean mechanism, or util:list with the merge option should do it for you. This is assuming you're using Spring 2.0+. Hope that helps!
Peter Mularien | Blog
Author, Spring Security 3 (Book) - Packt Publishing, Available in print and eBook form
SCJP 5, Oracle DBA
Any postings are my own opinion, and should not be attributed to my employer or clients.
Nov 28th, 2007, 08:05 AM
Seems like the way to go. Thanks.