Which is the correct way of declaring bean-managed transaction demarcation for an EJB 3.0
message-driven bean?
A.
@MessageDriven
public class MyMessageBean
implements MessageListener, UserTransaction {
B.
@MessageDriven @TransactionManagement(TransactionManagementType.BEAN) public
class MyMessageBean implements MessageListener {
C.
@MessageDriven
public class MyMessageBean implements MessageListener)
@TransactionManagement(TransactionManagementType.BEAN) public void
onMessage(Message message) {…}
@MessageDriven(transactionManagement=TransactionManagementType.BEAN) public class
MyMessageBean implements MessageListener {