thanks Pavel for sharing that info :) I sure didn't know that.

On Tue, Sep 27, 2011 at 12:37 AM, Pavel Moravec <[email protected]> wrote:

> Hi Praveen and all,
> just an additional info to prevent some confusion if you wish to use browse
> mode: priorities work when consuming the messages, while when browsing the
> queue, messages are ordered based on their enqueueing time. I.e. when
> sending messages:
>
> - first with priority 2
> - then with priority 1
> - latest with priority 3
>
> then browsing the queue shows messages in ordering "priority 2", "priority
> 1", "priority 3" message.
> While consuming messages consumes them in ordering "priority 3", "priority
> 2", "priority 1" message.
>
> Kind regards,
> Pavel
>
>
> ----- Original Message -----
> > From: "Praveen M" <[email protected]>
> > To: [email protected]
> > Sent: Saturday, September 24, 2011 5:48:42 AM
> > Subject: Re: Priority queues with JMS Client/ Java Broker
> >
> > thanks a lot for your mail...I will try that.
> >
> > On Fri, Sep 23, 2011 at 6:15 PM, Ted Ross <[email protected]> wrote:
> >
> > > On 09/23/2011 07:44 PM, Praveen M wrote:
> > >
> > >> Hi,
> > >>
> > >> I'm trying to write a simple test to use the priority queues.
> > >>
> > >> I have a couple of questions.
> > >>
> > >> Can I create priority queues on the fly at run-time?
> > >>
> > >> if I use session.createQueue("queueName  ;{create: always , node :
> > >> {type :
> > >> queue, durable : true, priority : true}}"); will the queue be
> > >> created as a
> > >> priority queue?
> > >>
> > >
> > > The correct syntax uses an extension in the queue creation:
> > >
> > >    queueName;{create:always, node:{type:queue,
> > > x-declare:{arguments:{'x-qpid-**priorities':2}}}}
> > >
> > > The argument specifies how many distinct priorities are supported
> > > by the
> > > queue.
> > >
> > > Please note that the broker (as required by the AMQP specification)
> > > divides
> > > the space from 0 to 9 evenly into priority groups depending on how
> > > many you
> > > ask for.  For example, if you specify two levels, priorities 0-4
> > > are
> > > equivalent and 5-9 are equivalent with 5-9 being the higher
> > > priority.
> > >
> > > I hope this helps.
> > >
> > > -Ted
> > >
> > >
> > >
> ------------------------------**------------------------------**---------
> > > Apache Qpid - AMQP Messaging Implementation
> > > Project:      http://qpid.apache.org
> > > Use/Interact:
> > > mailto:users-subscribe@qpid.**apache.org<
> [email protected]>
> > >
> > >
> >
> >
> > --
> > -Praveen
> >
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:[email protected]
>
>


-- 
-Praveen

Reply via email to