File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 923
    
    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 ?


OCPJP 6(100 %) OCEWCD 6(91 %) OCPJBCD(93%)
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1524
    
  22

Simply because a MDB does not have a client.

Regards,
Frits
gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 923
    
    1

oh yes. thanks alot Frits
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: query on bean managed transaction from ejb3.1 specs ?
 
Similar Threads
BMT not propogated to invoked beans
MDB and Bean-managed tx question
JTA Transaction management ambiguity
dbt in exceptions + transactions + Session bean (BMT)
BMT and Bean Type.