Bug 1180556 - [GSS](6.4) EJB container-transaction configuration with ejb-jar.xml leads to wrong transaction behavior
Summary: [GSS](6.4) EJB container-transaction configuration with ejb-jar.xml leads to ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: EJB
Version: 6.3.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER1
: EAP 6.4.0
Assignee: David M. Lloyd
QA Contact: Pavel Slavicek
URL:
Whiteboard:
Depends On:
Blocks: 1180570
TreeView+ depends on / blocked
 
Reported: 2015-01-09 12:36 UTC by Ricardo Martinelli de Oliveira
Modified: 2023-09-14 02:53 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1180570 (view as bug list)
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-2627 0 Major Closed EJB container-transaction configuration with ejb-jar.xml leads to wrong transaction behavior 2018-07-27 11:57:21 UTC

Description Ricardo Martinelli de Oliveira 2015-01-09 12:36:23 UTC
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

   <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>

Comment 2 hsvabek 2015-02-13 09:58:44 UTC
It is Ok.

Comment 3 JBoss JIRA Server 2015-02-13 11:52:42 UTC
Hynek Švábek <hsvabek> updated the status of jira WFLY-2627 to Resolved

Comment 4 Kabir Khan 2015-02-16 22:26:10 UTC
Additional tests in https://github.com/jbossas/jboss-eap/pull/2295

Comment 7 Red Hat Bugzilla 2023-09-14 02:53:06 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


Note You need to log in before you can comment on or make changes to this bug.