thank your for your info. would i work in theory for my case (because i ensure that all messages with same JMSXGroupID will have same Priority) or would it work generally (even when messages with same JMSXGroupID have different priorities - dont know if that really makes sense tough...)?
yes, we also consider using two queues instead of one queue with selectors... Can u please explain whay consumers my get stuck with sparse selector? tia, daniel On Wed, Mar 27, 2013 at 2:59 AM, SuoNayi <suonayi2...@163.com> wrote: > seems work in theory. > Why not using two queues to send the different messages? > It's more easy for problem diagnosis if some trouble is present. > Besides, Do not use sparse selector or your consumers may get stuck. > > > > > At 2013-03-26 22:58:29,"Daniel Guggi" <daniel.gu...@gmail.com> wrote: > >hi, > > > >im curious if it is possible to use message-groups and jms selectors > >together. > > > >example: > > > >i have consumer 'normalPriorityConsumer' for queue "X" with selector > >'JMSProperty >= 4' > >i have consumer 'lowPrioritiyConsumer' for queue "X" with selector > >'JMSProperty < 4' > > > >all messages send to queue "X" will have the JMSXGroupID header set. > > > >would activemq be capable of sending to the appropriate consumer based on > >the priority? > > > >in my scenario this might work, because we ensure that for a given > >jmsxGroupID the priority is always the same for all messages... > > > >ty, > >daniel >