Hi guys,
I have the following situation on a queue. I have posted 6 messages with priority 0 and 6 with priority 5. All of them have attribute JMS_JBOSS_SCHEDULED_DELIVERY set with the same timestamp. I attach extract from JMX Console below:
Given this situation, I would expect all priority 5 messages to be delivered first, and then all priority 0s. What actually happens is that
JBoss delivers first one priority 0 message, then all priority 5 and then all other priority 0s. Does anybody understand why?
Thanks
[org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.dlSendingMessageRelay-mdb
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 0
jmsMessageID : ID:45-13173127338854
jmsTimeStamp : 1317312733885
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {JMS_JBOSS_SCHEDULED_DELIVERY=1317313200000, JMS_JBOSS_REDELIVERY_LIMIT=0}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:45
}
}, org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.dlSendingMessageRelay-mdb
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 0
jmsMessageID : ID:45-13173127348805
jmsTimeStamp : 1317312734880
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {JMS_JBOSS_SCHEDULED_DELIVERY=1317313200000, JMS_JBOSS_REDELIVERY_LIMIT=0}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:45
}
}, org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.dlSendingMessageRelay-mdb
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 0
jmsMessageID : ID:45-13173127656089
jmsTimeStamp : 1317312765608
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {JMS_JBOSS_SCHEDULED_DELIVERY=1317313200000, JMS_JBOSS_REDELIVERY_LIMIT=0}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:45
}
}, org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.dlSendingMessageRelay-mdb
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 0
jmsMessageID : ID:45-131731276661010
jmsTimeStamp : 1317312766610
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {JMS_JBOSS_SCHEDULED_DELIVERY=1317313200000, JMS_JBOSS_REDELIVERY_LIMIT=0}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:45
}
}, org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.dlSendingMessageRelay-mdb
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 0
jmsMessageID : ID:45-131731279543914
jmsTimeStamp : 1317312795439
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {JMS_JBOSS_SCHEDULED_DELIVERY=1317313200000, JMS_JBOSS_REDELIVERY_LIMIT=0}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:45
}
}, org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.dlSendingMessageRelay-mdb
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 0
jmsMessageID : ID:45-131731279644015
jmsTimeStamp : 1317312796440
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {JMS_JBOSS_SCHEDULED_DELIVERY=1317313200000, JMS_JBOSS_REDELIVERY_LIMIT=0}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:45
}
}, org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.dlSendingMessageRelay-mdb
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 5
jmsMessageID : ID:45-131731289066619
jmsTimeStamp : 1317312890666
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {JMS_JBOSS_SCHEDULED_DELIVERY=1317313200000, JMS_JBOSS_REDELIVERY_LIMIT=0}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:45
}
}, org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.dlSendingMessageRelay-mdb
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 5
jmsMessageID : ID:45-131731289167020
jmsTimeStamp : 1317312891670
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {JMS_JBOSS_SCHEDULED_DELIVERY=1317313200000, JMS_JBOSS_REDELIVERY_LIMIT=0}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:45
}
}, org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.dlSendingMessageRelay-mdb
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 5
jmsMessageID : ID:45-131731294011424
jmsTimeStamp : 1317312940114
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {JMS_JBOSS_SCHEDULED_DELIVERY=1317313200000, JMS_JBOSS_REDELIVERY_LIMIT=0}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:45
}
}, org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.dlSendingMessageRelay-mdb
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 5
jmsMessageID : ID:45-131731294112025
jmsTimeStamp : 1317312941120
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {JMS_JBOSS_SCHEDULED_DELIVERY=1317313200000, JMS_JBOSS_REDELIVERY_LIMIT=0}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:45
}
}, org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.dlSendingMessageRelay-mdb
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 5
jmsMessageID : ID:45-131731297156429
jmsTimeStamp : 1317312971564
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {JMS_JBOSS_SCHEDULED_DELIVERY=1317313200000, JMS_JBOSS_REDELIVERY_LIMIT=0}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:45
}
}, org.jboss.mq.SpyObjectMessage {
Header {
jmsDestination : QUEUE.dlSendingMessageRelay-mdb
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 5
jmsMessageID : ID:45-131731297257030
jmsTimeStamp : 1317312972570
jmsCorrelationID: null
jmsReplyTo : null
jmsType : null
jmsRedelivered : false
jmsProperties : {JMS_JBOSS_SCHEDULED_DELIVERY=1317313200000, JMS_JBOSS_REDELIVERY_LIMIT=0}
jmsPropReadWrite: false
msgReadOnly : true
producerClientId: ID:45
}
}]