File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB 3, TX @AroundInvoke Question

 
Camilo Morales
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since the @AroundInvoke methods CAN NOT be business methods of a Bean, they CAN NOT define TX Attributes for Container-Managed Transaction demarcation, and they CAN NOT use the UserTransaction interface to manage transactions explicitly either, even if the @AroundInvoke method is inside a BMT Bean.

Is that right ?

Thanks,
 
Shivani Chandna
Ranch Hand
Posts: 380
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, that is not true. Read the following lines from Core Specs -> Page 303.

Business method interceptor method invocations occur within the same transaction and security context as the business method for which they are invoked.

Lifecycle call back method execute in unspecified Tx and Security context.

Regards,
Shivani.
 
Camilo Morales
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for clarifying,
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic