From 50c5cc0bd203bcd30cd915629725cc14b4d527d8 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Fri, 18 Apr 2014 12:08:33 +0200 Subject: [PATCH] polishing JmsLister is intended to be available on method or as a meta-annotation. Issue: SPR-9882 --- .../java/org/springframework/jms/annotation/JmsListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-jms/src/main/java/org/springframework/jms/annotation/JmsListener.java b/spring-jms/src/main/java/org/springframework/jms/annotation/JmsListener.java index c476c68876..2294ea090e 100644 --- a/spring-jms/src/main/java/org/springframework/jms/annotation/JmsListener.java +++ b/spring-jms/src/main/java/org/springframework/jms/annotation/JmsListener.java @@ -66,7 +66,7 @@ import org.springframework.messaging.handler.annotation.MessageMapping; * @see EnableJms * @see JmsListenerAnnotationBeanPostProcessor */ -@Target({ElementType.METHOD, ElementType.TYPE}) +@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE}) @Retention(RetentionPolicy.RUNTIME) @MessageMapping @Documented