DWR

Annotation configuration does not work with AOP proxies

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 3.0.M1
  • Fix Version/s: 3.0.M1
  • Component/s: Spring
  • Description:
    Whenever you have an AOP proxy or scoped proxy the annotation configuration cannot detect a bean.

Activity

Hide
Jose Noheda added a comment - 18/Feb/08 11:49 AM

<dwr:annotation-config /> can remote proxied beans (AspectJ / Scoped) declared using @Component (or similar) and @Scope.

If the remoted bean has a scope other than singleton / prototype and is declared with @Component remember to include scoped-proxy in the scanner declaration. Example:

<context:component-scan base-package="org.internna.iwebmvc.spring.services.dwr" scoped-proxy="interfaces" />

Show
Jose Noheda added a comment - 18/Feb/08 11:49 AM <dwr:annotation-config /> can remote proxied beans (AspectJ / Scoped) declared using @Component (or similar) and @Scope. If the remoted bean has a scope other than singleton / prototype and is declared with @Component remember to include scoped-proxy in the scanner declaration. Example: <context:component-scan base-package="org.internna.iwebmvc.spring.services.dwr" scoped-proxy="interfaces" />

People

Dates

  • Created:
    18/Feb/08 9:12 AM
    Updated:
    18/Feb/08 11:49 AM
    Resolved:
    18/Feb/08 11:49 AM