activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject JMSPriority and activeMQ
Date Mon, 26 Jul 2010 14:00:33 GMT

It looks to me like ActiveMQ uses a byte to hold the message priority and 
treats it as a signed integer. This makes the range -127 to +128. 
According to page 34, section 3.4.10 of the JMS spec, priorities are in 
the range 0 to 9. 

I have also found that IBMs MQSeries, which offers a JMS facility for C++ 
users called XMS, allows message priorities in the range 0 to MAXINT.

The IBM product may be doing what it does because the underlying queue 
mechanism has supported message priorities for some time and just doesnt 
restrict them when coming via the JMS-like interface. But it seems to me 
that ActiveMQ should. After all, it should follow the spec....


Andrew Marlow

This e-mail may contain confidential and/or privileged information. If you are not the intended
recipient (or have received this e-mail in error) please notify the sender immediately and
delete this e-mail. Any unauthorised copying, disclosure or distribution of the material in
this e-mail is prohibited.

Please refer to
 for additional disclosures.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message