[jboss-user] [JBoss Messaging] - JMSXDeliveryCount in message selector and QueueBrowser
andreas_back
do-not-reply at jboss.com
Tue May 11 13:09:51 EDT 2010
andreas_back [http://community.jboss.org/people/andreas_back] created the discussion
"JMSXDeliveryCount in message selector and QueueBrowser"
To view the discussion, visit: http://community.jboss.org/message/542379#542379
--------------------------------------------------------------
Hello!
A long running application is ported from JBoss MQ (under JBoss 3.2.4) to JBoss Messaging (under JBoss 5.1.0). The queue is used to distribute SOA-like jobs to a cluster of service-units.
1. The service-units shall only accept messages that have not been delivered before:
(JMS_JBOSS_REDELIVERY_COUNT is null or JMS_JBOSS_REDELIVERY_COUNT < 2)
in JBoss MQ under JBoss 3.4.2.
(JMSXDeliveryCount is null or JMSXDeliveryCount < 2)
has not shown any effect in JBoss Messaging.
2. Via a swing admin tool the content of the queue can be observed (by the use of QueueBrowser) and the "delivery_count" shall be read.
With JBoss MQ under JBoss 3.4.2 this was no problem. tm.getJMSRedelivered() did the job. But this method now throws an exception
under JBoss Messaging.
Under JBoss Messaging (and JBoss 5.1.0) tm.getStringProperty("JMSXDeliveryCount") always returns null when used with QueueBrowser.
The QueueBrowser returns JBossTextMessage objects and not the TextMessageProxy, that is returned by the receive method of the MessageConsumer.
Any advice
* how to select by a message selector only messages that have not been delivered before
* and how to read the "delivery_count"
in JBoss Messaging is very welcome!
Greetings
Andreas
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/542379#542379]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100511/adfdf60d/attachment-0001.html
More information about the jboss-user
mailing list