Friday, June 04, 2004

 
Simon's having some JMS fun. I'm not sure he's interpreting one part correctly though (but I haven't tried this so will reserved punishment..). The quote:

Message-driven beans should not attempt to use the JMS API for message acknowledgment. Message acknowledgment is automatically handled by the container. If the message-driven bean uses container managed transaction demarcation, message acknowledgment is handled automatically as a part of the transaction commit. If bean managed transaction demarcation is used, the message receipt cannot be part of the bean-managed transaction, and, in this case, the receipt is acknowledged by the container.


I would interpret that to mean the container should use normal auto-ack mode of JMS -- the ack is done on successful completion of onMessage, rather than before.

This page is powered by Blogger. Isn't yours?