MessageStore backed QueueChannel with Spring Integration+ Java Config

后端 未结 1 1830
忘了有多久
忘了有多久 2021-01-16 02:35

The Spring Integration reference guide refers to using a MessageStore implementation to provide persistence to a QueueChannel.

It\'s mentioned many times but all exa

1条回答
  •  渐次进展
    2021-01-16 03:16

    Reverse engineered what the XML config did, and this is the answer.

    You have a wrap the MessageStore in a MessageGroupQueue

    So it would look something like this

    @Bean
    public MessageChannel messageStoreBackedChannel() {
        return new QueueChannel(
            new MessageGroupQueue(<>, "Group ID")
        );
    }
    

    0 讨论(0)
提交回复
热议问题