Feb 26th, 2009, 02:13 PM
Service Layer class instantiated in web.xml not Spring
I hope I've this posted in the correct forum.
I'm using IBM Web Services, whereby the WSDL is generated from my ServiceImpl class. My web.xml defines this ServiceImpl as a Servlet class.
To my knowledge, this means that the ServiceImpl class is instantiated outside of Spring. (Correct me if I'm wrong)
Therefore when I've around advice defined for this ServiceImpl it doesn't seem to be invoked.
How do I get my ServiceImpl to be Spring aware?
I've read about the lazy-init attribute being set to true, and annotating ServiceImpl with @Configurable, but what else needs to be done?
Do I need to define a AnnotationBeanConfigurer bean in my application context?
Feb 26th, 2009, 02:56 PM
OK, I've done more some reading into this and realize that I do need to define a AnnotationBeanConfigurer bean.
However, do I need to define this define a Load-time weaver and the aop.xml etc? Anything else?