Two Laptop Bag*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes query on bean managed transaction from ejb3.1 specs ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "query on bean managed transaction from ejb3.1 specs ?" Watch "query on bean managed transaction from ejb3.1 specs ?" New topic
Author

query on bean managed transaction from ejb3.1 specs ?

gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924
    
    1

ejb 3.1 specs page 367 says

•If the client request is associated with a transaction T1, and the instance is not associated with a transaction, the container suspends the client’s transaction association and invokes the method with an unspecified transaction context. The container resumes the client’s transaction association (T1) when the method (together with any associated interceptor methods) completes. This case can never happen for a message-driven bean or for the invocation of a web service endpoint method of a session bean.

coulndt understood why it CANNOT happen for MDB ?
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1628
    
  23

Simply because a MDB does not have a client.

Regards,
Frits
gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924
    
    1

oh yes. thanks alot Frits
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: query on bean managed transaction from ejb3.1 specs ?
 
Similar Threads
BMT and Bean Type.
MDB and Bean-managed tx question
dbt in exceptions + transactions + Session bean (BMT)
BMT not propogated to invoked beans
JTA Transaction management ambiguity