[
https://issues.jboss.org/browse/AS7-5886?page=com.atlassian.jira.plugin.s...
]
Cheng Fang commented on AS7-5886:
---------------------------------
The expected behavior is:
1, each container-transaction element should take effect independent of the other; the
second one should not overwrite the first one;
2, Since Timer methods have their own container-transaction declared, the more general
method-based transaction attribute does not apply.
EJB container-transaction configuration need to include Timer
method-intf
-------------------------------------------------------------------------
Key: AS7-5886
URL:
https://issues.jboss.org/browse/AS7-5886
Project: Application Server 7
Issue Type: Bug
Components: EJB
Affects Versions: 7.2.0.CR1
Reporter: Cheng Fang
Assignee: Cheng Fang
In the following ejb-jar.xml snippet,
{code:xml}
<container-transaction>
<method>
<ejb-name>TestBean</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>TestBean</ejb-name>
<method-intf>Timer</method-intf>
<method-name>*</method-name>
</method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
{code}
Only timer methods have tx attr not supported, and all other methods have tx attr
required.
Currently with as-7, the second container-transaction overwrites the first one, resulting
in all methods have tx attr not supported.
--
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