Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-3070

MongoDbMessageStore cannot read delayed messages

    Details

      Description

      When MongoDbMessageStore is used as message store for delayer it fails to read messages from MongoDB.

      Delayer is wrapping GenericMessage into DelayHandler.DelayedMessageWrapper, and MongoDbMessageStore is warping this again to MongoDbMessageStore.MessageWrapper. In the database there are MongoDbMessageStore.MessageWrapper -> DelayHandler.DelayedMessageWrapper -> GenericMessage -> Payload.

      MongoDbMessageStore.MessageReadingMongoConverter does not provide special handling for DelayHandler.DelayedMessageWrapper as it done for MongoDbMessageStore.MessageWrapper. And because DelayHandler.DelayedMessageWrapper stores GenericMessage without default constructor, MongoDbMessageStore.MessageReadingMongoConverter fails to read it from MongoDB.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                abilan Artem Bilan
                Reporter:
                romanleicht Roman Leicht
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: