Announcement Announcement Module
Collapse
No announcement yet.
Service Layer class instantiated in web.xml not Spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Service Layer class instantiated in web.xml not Spring

    Hi,

    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?

    Thanks.

  • #2
    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?
    Thanks.

    Comment

    Working...
    X