Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDbMessageStore cannot read delayed messages [INT-3070] #7051

Closed
spring-operator opened this issue Jun 25, 2013 · 4 comments
Closed

MongoDbMessageStore cannot read delayed messages [INT-3070] #7051

spring-operator opened this issue Jun 25, 2013 · 4 comments
Assignees
Milestone

Comments

@spring-operator
Copy link
Contributor

spring-operator commented Jun 25, 2013

Roman Leicht opened INT-3070 and commented

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.


Affects: 2.2.4

Sub-tasks:

Issue Links:

@spring-operator
Copy link
Contributor Author

spring-operator commented Jun 25, 2013

Roman Leicht commented

I think #7023 is related to this one.

@spring-operator
Copy link
Contributor Author

Artem Bilan commented

Hi, Roman!
Thanks, that you point it out!
It's a pity, that we haven't got integration tests on the matter before...
After some investigation several other issue appeared around MongoDbMessageStore.
So, it will be immediate task for us and we will try to fix it ASAP.

@spring-operator
Copy link
Contributor Author

Artem Bilan commented

PR: #864

@spring-operator
Copy link
Contributor Author

Gary Russell commented

Merged and cherry-picked to 2.2.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants