The only way I see is to configure separate JmsListenerContainerFactory
beans for all those different @JmsListener
and their specific ErrorHandler
. Each of those @JmsListener
should refer to their own factory from this option:
/**
* The bean name of the {@link org.springframework.jms.config.JmsListenerContainerFactory}
* to use to create the message listener container responsible for serving this endpoint.
* <p>If not specified, the default container factory is used, if any.
*/
String containerFactory() default "";
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…