Annotation Type MessageHandler
-
@Target(METHOD) @Retention(RUNTIME) public @interface MessageHandler
Methods annotated with this Annotation will automatically be called when aPatternMatchingQueuedMessageHandlerandPatternMatchingMessageHandlerreceives respectively aQueuedMessageor aMessagewhere theMessage.getPayload()matches the type of the first argument/parameter on a method annotated with @MessageHandlerIf the class extends
PatternMatchingQueuedMessageHandler(when used with aDurableQueuesinstance) then it allows a second optional argument of typeQueuedMessage
If the class extendsPatternMatchingMessageHandler(when used with aInboxes/InboxorOutboxes/Outbox) then it allows a second optional argument of typeMessage