Results 1 to 3 of 3

Thread: Subscriber and Handler Annotaions not found

  1. #1
    Join Date
    Aug 2006
    Posts
    13

    Default Subscriber and Handler Annotaions not found

    Hello,

    I have following annotations in my code: @Subscriber and @Handler.

    However, its failing to compile as I get this:

    Handler cannot be resolved to a type
    Subscriber cannot be resolved to a type

    So what jar dependency do I need to include in my MAVEN POM to get this working? I've included all the Spring Integration jars but still not working.

    Any ideas? Hope someone can help.

    Regards
    Gautam

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    Those annotations were used in early milestones but have been replaced. You probably want to use @ServiceActivator.

    Have a look at the reference manual for the 1.0.x final syntax:
    http://static.springframework.org/sp...reference.html

  3. #3
    Join Date
    Dec 2007
    Posts
    90

    Default @Handler Annotation

    It is confusing as there is this snippet in the 1.0.3 documentation


    Code:
    public class FooService {
    
        @Handler
        public void bar(Foo foo) {
            ...
        }
    
    }
    JIRA ticket?

Posting Permissions

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