[jboss-jira] [JBoss JIRA] (WFLY-2627) EJB container-transaction configuration with ejb-jar.xml leads to wrong transaction behavior

Norbert Bumm (JIRA) issues at jboss.org
Sat Aug 2 11:18:29 EDT 2014


     [ https://issues.jboss.org/browse/WFLY-2627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norbert Bumm updated WFLY-2627:
-------------------------------

    Attachment: wildfly-src-7.2.0.Final-TransactionBug.patch


Patch for wildfly 7.2.0.Final to fix this bug and WFLY-67

> EJB container-transaction configuration with ejb-jar.xml leads to wrong transaction behavior
> --------------------------------------------------------------------------------------------
>
>                 Key: WFLY-2627
>                 URL: https://issues.jboss.org/browse/WFLY-2627
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: EJB, Transactions
>         Environment: jdk1.7.0_45_x64, Windows 7
>            Reporter: Norbert Bumm
>            Assignee: David Lloyd
>         Attachments: arquillian-jpa.zip, wildfly-src-7.2.0.Final-TransactionBug.patch
>
>
> If there is a global transaction declaration for “Supports” and a “Required” declaration for a specific Method the “Required” gets ignored. I first encountered the problem with an old 2.1 EJB, but the problem is also there with a 3.1 EJB with deployment descriptor. It works correct with annotations.
> ejb-jar.xml snippet 
> {code:xml}
>    <container-transaction>
>       <method>
>          <ejb-name>UserDAOImpl</ejb-name>
>           <method-name>*</method-name>
>        </method>
>        <trans-attribute>Supports</trans-attribute>
>     </container-transaction>
>     <container-transaction>
>       <method>
>          <ejb-name>UserDAOImpl</ejb-name>
>          <method-intf>Local</method-intf>
>          <method-name>createUser</method-name>
>       </method>
>       <trans-attribute>Required</trans-attribute>
>    </container-transaction>
> {code}



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)



More information about the jboss-jira mailing list