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) {…}
D.
@MessageDriven(transactionManagement=TransactionManagementType.BEAN)
public class MyMessageBean implements MessageListener {