INT-2436: JMS channel: bean name for container (#3565)

JIRA: https://jira.spring.io/browse/INT-2436

The `JmsChannelFactoryBean` creates a `ListenerContainer` internally
without any `beanName` propagation.
When we rely on a default internal `Executor`, it is created with a
default thread name prefix for all the JMS channel instances.
It cause a confusion in logs

* Set `beanName` for the internal `ListenerContainer` to `this.beanName + ".container"`
making its connection with a channel it is associated with and unique thread name prefix
* Comment out `allWarningsAsErrors = true` in `build.gradle` for deprecated Kotlin
language version `1.3`.
Otherwise IDEA doesn't want to build project
This commit is contained in:
Artem Bilan
2021-05-13 16:00:24 -04:00
committed by GitHub
parent 6b98192568
commit e17f267c31
3 changed files with 7 additions and 8 deletions

View File

@@ -150,6 +150,8 @@ public class JmsChannelParserTests extends ActiveMQMultiContextTests {
assertThat(TestUtils.getPropertyValue(
TestUtils.getPropertyValue(channel, "dispatcher"), "maxSubscribers", Integer.class).intValue())
.isEqualTo(1);
assertThat(TestUtils.getPropertyValue(container, "taskExecutor.threadNamePrefix"))
.isEqualTo("queueNameChannel.container-");
}
@Test