[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-2120) Tx logic doesn't take method-intf type into acount
Carlo de Wolf (JIRA)
jira-events at lists.jboss.org
Thu May 26 05:26:01 EDT 2011
[ https://issues.jboss.org/browse/EJBTHREE-2120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604553#comment-12604553 ]
Carlo de Wolf commented on EJBTHREE-2120:
-----------------------------------------
In case of a SERVICE_ENDPOINT the interface class name can overlap with any other business view. (AS7-905)
> Tx logic doesn't take method-intf type into acount
> --------------------------------------------------
>
> Key: EJBTHREE-2120
> URL: https://issues.jboss.org/browse/EJBTHREE-2120
> Project: EJB 3.0
> Issue Type: Bug
> Components: transactions
> Reporter: Carlo de Wolf
> Assignee: Carlo de Wolf
> Fix For: EJB 3.1
>
> Attachments: EJBTHREE-2120_core_int.patch
>
>
> Current metadata resolving logic uses AOP advisor.resolveAnnotation on a method. Since the method can be used both in a remote and local interface (via inheritance) we can't differentiate properly and an override listed below fails:
> <container-transaction>
> <description>Never for method sameMethod on remote intf</description>
> <method>
> <ejb-name>TxBean</ejb-name>
> <method-intf>Remote</method-intf>
> <method-name>sameMethod</method-name>
> </method>
> <trans-attribute>Never</trans-attribute>
> </container-transaction>
> <container-transaction>
> <description>Mandatory for method sameMethod on local intf</description>
> <method>
> <ejb-name>TxBean</ejb-name>
> <method-intf>Local</method-intf>
> <method-name>sameMethod</method-name>
> </method>
> <trans-attribute>Mandatory</trans-attribute>
> </container-transaction>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list