@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE})
@Bean
@DefaultScope(value=javax.inject.Singleton.class)
public @interface JMSConnectionFactory
JMSListener
references must be annotated with this annotation. If a
connection factory is present in the Bean Context but not annotated with
this annotation, the post-processing logic will fail and the
JMSListener
will not work.
Usage:
@JMSConnectionFactory("myConnectionFactory") public ConnectionFactory myConnectionFactory() { return new ActiveMqConnectionFactory("vm://localhost?broker.persist=false"); }
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value
Name to identify the
ConnectionFactory bean in the
context. |
@AliasFor(annotation=javax.inject.Named.class, member="value") public abstract java.lang.String value
ConnectionFactory
bean in the
context. This is used by the AbstractJMSListenerMethodProcessor
and the JMSListener
to identify which ConnectionFactory
to use.JMSListener
,
AbstractJMSListenerMethodProcessor