Closed
Description
Transaction name is always null when debug logging @Transactional`` @JmsListener
methods.
This chunk of code in AbstractPollingMessageListenerContainer
returns null for getBeanName():
// Use bean name as default transaction name.
if (this.transactionDefinition.getName() == null) {
String beanName = getBeanName();
if (beanName != null) {
this.transactionDefinition.setName(beanName);
}
}
It should be easy to support by setting the beanName from the endpoint passed into createListenerContainer(JmsListenerEndpoint endpoint) { ... }
in AbstractJmsListenerContainerFactory
.