[jboss-jira] [JBoss JIRA] (AS7-6724) method-params containing an array not correctly processed for EJB2.1 with CMT
Robert Panzer (JIRA)
jira-events at lists.jboss.org
Wed Mar 13 09:20:42 EDT 2013
Robert Panzer created AS7-6724:
----------------------------------
Summary: method-params containing an array not correctly processed for EJB2.1 with CMT
Key: AS7-6724
URL: https://issues.jboss.org/browse/AS7-6724
Project: Application Server 7
Issue Type: Feature Request
Components: EJB
Affects Versions: 7.1.3.Final (EAP), EAP 6.1.0.Alpha (7.2.0.Final)
Environment: JBoss 7.2.0-Final Prerelease (Commit 4ed76c) and JBoss 7.1.3.Final on Win7/64 JDK 1.7.0_09
Reporter: Robert Panzer
Assignee: jaikiran pai
It seems that the method-params for container transactions are not matched correctly if the contain arrays.
I've got an EJB "First" that calls another EJB "Second". Both have the same interface containing a method void test(String[]);
If I define the transaction attribute NEVER including method-params for "First" and without params for "Second" the test fails with
JBAS014163: Transaction present on server in Never call (EJB3 13.6.2.6)
I define the container transaction like this:
<container-transaction>
<method>
<ejb-name>FirstWithParams</ejb-name>
<method-intf>Local</method-intf>
<method-name>test</method-name>
<method-params>
<method-param>java.lang.String[]</method-param>
</method-params>
</method>
<method>
<ejb-name>FirstWithParams</ejb-name>
<method-intf>Local</method-intf>
<method-name>test</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
<method>
<ejb-name>FirstWithParams</ejb-name>
<method-intf>Local</method-intf>
<method-name>test</method-name>
<method-params>
<method-param>int</method-param>
</method-params>
</method>
<method>
<ejb-name>Second</ejb-name>
<method-intf>Local</method-intf>
<method-name>test</method-name>
</method>
<trans-attribute>Never</trans-attribute>
</container-transaction>
I will attach a test case that fails at the call to test(String[]) but successfully call test(String) and test(int).
--
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
More information about the jboss-jira
mailing list