Pete Muir commented on CDI-121:
@Transactional is being developed as part of a JTA maintenance release. It will live in
the package javax.transaction. If you have any issue with this, please contact Linda
DeMichel with your feedback (please cc me). Putting on this issue won't help :-)
I think the current plan is for @Transactional to be meta-annotated with
@InterceptorBinding. If you see a problem with this, then there is an alternative option,
which is for it to be made an interceptor binding at CDI deployment time using the CDI
SPI. Again, Linda is the person to address this feedback to.
Currently all scopes are defined in CDI. I'm perfectly open to addressing whether they
should be moved out, but that is another discussion. On this basis, @TransactionScoped is
being considered as part of CDI.
@Transactional is proposed to have a single member, transactionType, which will be an enum
of TransactionType. TransactionType is identical TransactionAttributeType, and indeed
@Transactional is identical to @TransactionAttribute. However the plan is to add new,
identical annotations and NOT to move the existing TransactionAttribute and
TransactionAttributeType. This can't be done due to backwards compatibility
There is also an extensive discussion on how EJB CMT should interact with the new
@Transactional, which I would strongly recommend getting involved with, as currently we
are having to choose between a set of bad options.
Project: CDI Specification Issues
Issue Type: Feature Request
Environment: Java EE
Reporter: Richard Hightower
Assignee: Richard Hightower
Fix For: 1.1 (Proposed)
Original Estimate: 3 days
Remaining Estimate: 3 days
Add TransctionalScope as a standard scope to define beans whose lifecycle is the same as
a given transaction.
This scope should start automatically when a transaction starts (but lazily when actually
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
For more information on JIRA, see: http://www.atlassian.com/software/jira