[ openjms-Bugs-705640 ] Messages in reverse order
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #705640, was opened at 2003-03-19 02:23 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474136&aid=705640&group_id=54559 Category: server Group: v0.7.4 Status: Closed Resolution: Works For Me Priority: 5 Submitted By: Enrico Petracchi (enrico1821) Assigned to: Jim Alateras (jalateras) Summary: Messages in reverse order Initial Comment: I have a simple producer-consumer application using selection criteria on Queue. If the producer sends messages before the consumer is up , the consumer receives messages in reverse order. The consumer selection criteria is something like: ((Prop1='DF_ITA') AND (Prop2='DF_ITA')) OR (Prop3='DF_ITA') ---------------------------------------------------------------------- >Comment By: Jim Alateras (jalateras) Date: 2003-03-27 21:47 Message: Logged In: YES user_id=28602 I have applied the patch by Enrico and also made additional changes to MessageQueue. The issue was that iterator returns messages in ascendinf order, which was in reverse to the way they were stored hence this problem was only visible when a selector was used. I have also added a test case to test suite. ---------------------------------------------------------------------- Comment By: Enrico Petracchi (enrico1821) Date: 2003-03-21 02:16 Message: Logged In: YES user_id=736086 Fix in comparator criteria for message cache. class: MessageHandleComparator attached my revision of MessageHandleComparator.java ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474136&aid=705640&group_id=54559