Hi,
I have a problem when I try to consume message from a queue using the method "receiveNoWait".
I have an MBean which uses a QueueBrowser to determine a set of message IDs that should be processed. After the selection a message selector is used to retrieve the message from the queue (the selector uses the property "JMSMessageID").
When I call "receiveNoWait" on the receiver, it always returns null. If I use the blocking receive call (either with or without setting a timeout), it works and I get the message.
I use JBoss 4.2.2 with JBossMessaging 1.4.0.SP3 and a Mysql5 as JMS persistence.
Any ideas?
Regards
Charly
There have been several other threads about receiveNoWait semantics on this forum.
Please have a search.