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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user