<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=gb2312"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML 预设格式 Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLChar
        {mso-style-name:"HTML 预设格式 Char";
        mso-style-priority:99;
        mso-style-link:"HTML 预设格式";
        font-family:"Courier New";
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=ZH-CN link=blue vlink=purple><div class=WordSection1><p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US style='color:#1F497D'>Thank you for your answers.but I doubt that as you say ,if we are processing 2st queue message as soon as the 1<sup>st</sup> queue gets a new message needed to process,how can we switch to process 1</span><sup><span lang=EN-US style='font-family:宋体;color:#1F497D'>st</span></sup><span lang=EN-US style='color:#1F497D'>? It also means that we should check the amount of messages in the queue in order ,I think it will cost much time and machine resource.and could you tell me how I could use spring amqp api to check the amount.?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal align=left style='text-align:left'><b><span style='font-size:10.0pt;font-family:宋体;color:windowtext'>发件人<span lang=EN-US>:</span></span></b><span lang=EN-US style='font-size:10.0pt;font-family:宋体;color:windowtext'> rabbitmq-discuss-bounces@lists.rabbitmq.com [mailto:rabbitmq-discuss-bounces@lists.rabbitmq.com] </span><b><span style='font-size:10.0pt;font-family:宋体;color:windowtext'>代表 </span></b><span lang=EN-US style='font-size:10.0pt;font-family:宋体;color:windowtext'>Ernest Staszuk<br></span><b><span style='font-size:10.0pt;font-family:宋体;color:windowtext'>发送时间<span lang=EN-US>:</span></span></b><span lang=EN-US style='font-size:10.0pt;font-family:宋体;color:windowtext'> 2012</span><span style='font-size:10.0pt;font-family:宋体;color:windowtext'>年<span lang=EN-US>7</span>月<span lang=EN-US>27</span>日<span lang=EN-US> 16:30<br></span><b>收件人<span lang=EN-US>:</span></b><span lang=EN-US> rabbitmq-discuss@lists.rabbitmq.com<br></span><b>主题<span lang=EN-US>:</span></b><span lang=EN-US> Re: [rabbitmq-discuss] something about message priority<o:p></o:p></span></span></p></div></div><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US><o:p> </o:p></span></p><div><p class=MsoNormal><span lang=EN-US>According to the compatibility and conformance with amqp specification (<a href="http://www.rabbitmq.com/specification.html">http://www.rabbitmq.com/specification.html</a>) rabbitmq <br>does NOT support messages priority. It is planned to support in future. Also you should be aware that amqp specifies at least 2 <br>priorities, so it is possible that it will not work as you would wish in the one of future releases. I implemented message priorities using <br>many queues and consume messages on them always in the same order (1st queue (is message) -> 1st queue (is message) -> 1st queue (empty)<br>-> 2nd queue (is message) -> 1st queue (empty) -> 2nd queue (empty) -> 3rd queue (is message) -> 1st queue ...)<br><br>Best regards, <br>Ernest Staszuk<br><br>W dniu 2012-07-27 10:13, andy pisze:<o:p></o:p></span></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-US>We use spring amqp to use rabbitmq,but I have meet a problem that we should send the message in the queue to programe in order of the priority,through I have set the message propriety,the rabbitmq still sends message in order of<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Delievered time. Could you tell me how to make it work so that we could send message order by priority <o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br><br><br><o:p></o:p></span></p><pre><span lang=EN-US>_______________________________________________<o:p></o:p></span></pre><pre><span lang=EN-US>rabbitmq-discuss mailing list<o:p></o:p></span></pre><pre><span lang=EN-US><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><o:p></o:p></span></pre><pre><span lang=EN-US><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><o:p></o:p></span></pre></blockquote><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p></div></body></html>