Can I inject some other bean to jms listener container defined using this tag:
<jms:listener-container connection-factory="connectionFactory">...</jms:listener-container>
?
The <jms:listener-container/>
is just a configuration convenience; it is not a bean in itself, it represents a set of attributes that will be applied to the child <jms:listener/>
elements. Each listener gets its own listener container bean.
You can reference
some other bean in the listener...
<jms:listener-container ... >
<jms:listener destination="someQueue" ref="foo" />
</jms:listener-container>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.