Transactions for managed beans

Posted by    |      

A standard, universal @Transactional annotation is coming in Java EE 7. You can read more about the proposal here.

However, there are some important things to keep in mind:

  • @Transactional is being developed as a revision to the JTA spec (as an MR)
  • @Transactional is not being developed by the CDI EG, nor will it be in the CDI spec
  • Feedback on @Transactional should be sent to the Java EE platform EG not to the CDI EG. The platform EG is conducting the revision to the JTA spec.

Java EE does not recognize a Servlet container as a compliant environment and therefore this feature will not be available there by default (mainly due to the absence of JTA in this environemnt).

However, to bridge the divide, Deltaspike will likely offer support for @Transactional in a Servlet environment since we acknowledge that it is important, and is an environment preferred by many developers (but we still strongly urge you to migrate to the web profile!!).


Back to top