[cdi-dev] [JBoss JIRA] Commented: (CDI-27) Support declarative transactions on managed beans

Mark Struberg (JIRA) jira-events at lists.jboss.org
Mon Sep 12 17:13:26 EDT 2011

    [ https://issues.jboss.org/browse/CDI-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627974#comment-12627974 ] 

Mark Struberg commented on CDI-27:

A possible way to implement / specify this would be to reuse the javax.ejb.TransactionAttribute annotation but handle it as InterceptorBinding in CDI beans. 
So instead of @Transactional(transaction=REQUIRES_NEW)
we could use @javax.ejb.TransactionAttribute(value=REQUIRES_NEW)

javax.ejb.TransactionAttribute is a simple annotation atm. We could add this as interceptor binding via our CDI Extension SPI

I'm not sure though what that would mean for EJBs in return. They would have to ignore this special Interceptor if the annotation is applied on an EJB.

> Support declarative transactions on managed beans
> -------------------------------------------------
>                 Key: CDI-27
>                 URL: https://issues.jboss.org/browse/CDI-27
>             Project: CDI Specification Issues
>          Issue Type: Tracker
>          Components: Java EE integration
>    Affects Versions: 1.0
>            Reporter: Pete Muir
>            Assignee: Pete Muir
>             Fix For: 1.1 (Confirmed)

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the cdi-dev mailing list