Spring does not advise bean when autoproxy configuration comes from imported xml.
Hello,
I have a multi-module application, when a particular module has a aspect bean that must intercept method calls originated from beans of other modules. This particular module, where the aspect is, has a configuration xml where the aspectj:autoproxy configuration resides.
When I import this xml configuration from other modules, I expect Spring to load not only the beans defined in the imported xml configuration, but the aspectj and other configurations as well.
But, instead, it doesn't load the aspectJ configuration.
I've set the spring log4J configuration to debug mode, and I can see the configuration file is actually loaded, the beans from imported xml are loaded as well, but not the aspectJ autoproxy feature.
i.e.: I have module A with a aspect bean and the autoproxy configuration, and module B, which uses A and imports it's xml configuration. If I only import A's configuration, the aspect does not work. If I configure B with aspectj:autoproxy, then it works fine.
I wish not to keep repeating the same configuration in other modules which uses A.
Is there a way to get that??
Thanks, in advance.