Results 1 to 2 of 2

Thread: AOP and PayloadRootAnnotationMethodEndpointMapping

  1. #1
    Join Date
    Oct 2008
    Posts
    19

    Default AOP and PayloadRootAnnotationMethodEndpointMapping

    I want to use an After returning advice after my endpoint methods runs.

    I am using PayloadRootAnnotationMethodEndpointMapping, so do I put the @Endpoint and @PayloadRoot annotations on the interface so I can use AOP?

    I tried this, but got a no mapping for request in the my logs.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    You should annotate concrete implementations. Annotations aren't inherited from interfaces to concrete classes (as specified in the java spefication).
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •