INT-2319
changed logic behind default group id for QueueChannel to be messageStoreId:channelId added support for resolving value if it is a placeholder
This commit is contained in:
committed by
Mark Fisher
parent
d07975319f
commit
dd66c98f61
@@ -1,13 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans:beans xmlns="http://www.springframework.org/schema/integration" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<beans:beans xmlns="http://www.springframework.org/schema/integration"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:beans="http://www.springframework.org/schema/beans"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/integration
|
||||
http://www.springframework.org/schema/integration/spring-integration.xsd">
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
|
||||
|
||||
<context:property-placeholder location="classpath:org/springframework/integration/config/ms.properties"/>
|
||||
|
||||
<channel id="output">
|
||||
<queue capacity="5" message-store="messageStore" />
|
||||
<queue capacity="5" message-store="${ms}" />
|
||||
</channel>
|
||||
|
||||
<channel id="input" />
|
||||
|
||||
@@ -64,7 +64,7 @@ public class ChannelWithMessageStoreParserTests {
|
||||
handler.getLatch().await(100, TimeUnit.MILLISECONDS);
|
||||
assertEquals("The message payload is not correct", "123", handler.getMessageString());
|
||||
// The group id for buffered messages is the channel name
|
||||
assertEquals(1, messageGroupStore.getMessageGroup(BASE_PACKAGE+".store:output").size());
|
||||
assertEquals(1, messageGroupStore.getMessageGroup("messageStore:output").size());
|
||||
|
||||
Message<?> result = output.receive(100);
|
||||
assertEquals("hello", result.getPayload());
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
ms=messageStore
|
||||
Reference in New Issue
Block a user