File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes MDB Message Receipt Part of Transaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "MDB Message Receipt Part of Transaction" Watch "MDB Message Receipt Part of Transaction" New topic

MDB Message Receipt Part of Transaction

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
In section 5.4.12 of the EJB 3.1 specification it says:
When a message-driven bean using bean-managed transaction demarcation uses the javax.transaction.UserTransaction interface to demarcate transactions, the message receipt that causes the bean to be invoked is not part of the transaction. If the message receipt is to be part of the transaction, container-managed transaction demarcation with the REQUIRED transaction attribute must be used.

Is it message receipt by the message driven bean that they are talking about?
Does this mean that there are circumstances under which the message delivered to the bean will not be re-delivered?
Thanks in advance!

My free books and tutorials:
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

I think it's the message receipt by the container. This post should bring some light about it. (although it's about EJB2.0)

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: MDB Message Receipt Part of Transaction
jQuery in Action, 3rd edition