This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Actually thinking about it more, priority channel is not what you need. How many different combinations of this 'sequence key' can you have? Is it totally arbitrary or is it something more controlled and in the range of let's say 5-10 different combinations?

Comment

Sequence key is just some specific value inside document body - this is some way to group documents together with the requirement that documents from 1 group should be processed 1-by-1 (order does not matter) but documents from different groups can be processed simultaneously.

So sequence key is totally arbitrary and we don't have any specific range for this.
Sequence key can be considered as "group id" to identify messages from same group.

Sorry, took me a while to get to it. I'll let you know by tomorrow. There are many ways of solving it, but I am now thinking about making it a part of the framework, so its a bit tricky. I'll let you know. I have a working prototype so i'll share it with you one way or the other.

Hey, sorry about the delay, but it was a bit trickier than I thought. Anyway, take a look at this: https://jira.springsource.org/browse/INT-2108. Currently the code is on my branch. You are more then welcome to checkout and build or you can just copy and paste the code itself in your classes.
It would be interesting to get your feedback.