Annotation Interface SendTo


@Retention(RUNTIME) @Target(METHOD) public @interface SendTo
Marks a lister method as having the ability to send the return value as a object as a message to the next queue;
 
 @Component
 public class MyListeners {     
   @ListenTo(value = "${examples.say.hello.queue}")
   @SendTo("${examples.say.hello.result.queue}")
   public String sayHello(String msg) {
     return "Hello, "+msg;
   }
 }
 
 
Author:
John Bryant
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The queue to send the return value too.
  • Element Details

    • value

      String value
      The queue to send the return value too. Can be overridden by the Session object./
      Returns:
      Default:
      ""