Hi,
I am using spring to develop a
java library which will be plugged in to our other projects.
So, there is some dependency (even after annotations used) which will go in an XML file.
Now, I can load this xml from inside packaged jar, But it would be different spring context
. Ideally,it should be in the same spring context created by application which uses this JAR.
To be in the same spring context,whoever uses this JAR library file needs to include this XML content in their own spring configuration XML file.
It doesn't seem a best practice to include configuration of JAR file in Application.
Any Ideas???