Hi,
I'm currently playing around with JBoss 4.0.1SP1. I've tried stoping the delivery of JMS message as described in chapter 6 of the getting started. There seems to be a problem because I still always receive the first message that is send after calling stopDelivery on the SimpleMessageEJB.
The log output is:
20:18:27,614 INFO [STDOUT] 12.03.2005 20:18:27 SimpleMessageBean onMessage
INFO: MESSAGE BEAN: Message received: This is message 1
All further message will be stopped. Did anybody else encounter this effect?
Regards,
Marcus
I know it sounds strange, but JBoss has already "delivered" the message to your MDB client and stopDelivery doesn't tell the client to NACK the message. Once you stop delivery, you also have to "bump" the client.