Announcement Announcement Module
Collapse
No announcement yet.
@Configurable inside an EAR Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • @Configurable inside an EAR

    Hi,

    i'm having problems to inject services to domain objects with LTW. I'm unsure where the problem lies. I've added the @Configurable annotation to a bean (the bean has no empty constructor but one with two parameters). I've defined a prototype bean (with and without lazy-init and depends-on) on the dispatcher-servlet.xml (not the application-context.xml). I've create an aop.xml (that is been used). Ive also added a javaagent (aspectjtweaver 1.5.3) to the start of weblogic.

    During startup the protoype bean is instanced (by Spring) and the services are injected to it but when a manually do a
    Code:
    new xxx(a, b)
    it does not get the services injected. I'm completely lost. Any help? I'm using 2.1M4 by the way (I've tried the context: and the bean declaration as well)

    Regards,

  • #2
    Is the spring-aspects.jar on your classpath?

    Comment


    • #3
      Originally posted by Dave Syer View Post
      Is the spring-aspects.jar on your classpath?
      And is aop.xml configured properly?

      Comment

      Working...
      X