users@glassfish.java.net

Re: Problems With Message Driven Bean Threading

From: <forums_at_java.net>
Date: Wed, 3 Aug 2011 08:41:18 -0500 (CDT)

When a MDB is used to send a message, by default, the transaction will be
container-managed. This means it will be automatically-committed when
onMessage() returns.

The MDB's acknowledgeMode (an activation config property of the MDB) is not
relevant here. This is only used if the bean is configured  to use
bean-managed transactions, and affects only the message being *received*, not
the message being *sent*.  The value of the acknowledgeMode property must be
either Auto-acknowledge or Dups-ok-acknowledge. But it is ignored if
container-managed transactions are being used.

Nigel


--
[Message sent by forum member 'nigeldeakin']
View Post: http://forums.java.net/node/828549