[
https://issues.apache.org/jira/browse/ARIES-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892809#action_12892809
]
Lin Sun commented on ARIES-369:
-------------------------------
Hi Valentin
Thanks for the suggestion. I think it may makes sense if we start to support
more than transaction interceptors. One possible could be also common out the
method attribute, like
<tx:transaction value="Required">
<ic:select>
<ic:include method="insert*" />
<ic:include beanId="*Biz*" />
<ic:include classname="*.biz.*" />
</ic:select>
</tx>
And this can apply to both top level and bean level transaction configuration,
except that beanId and classname isn't supported for bean level configuration.
I am not convinced why classname is needed, as it can be achieved by using the
beaId.
On the other hand, if you look at our current impl, it is not hard to support
another interceptor either, as we just simply need to add the bean and method
attribute to the custom element. From the user's point of view, the current
schema means less xml writing for the user, i.e
<tx:transaction method="insert*" bean="*Biz*" value="Required">
> Support transaction configuration at the blueprint bundle level
> ---------------------------------------------------------------
>
> Key: ARIES-369
> URL: https://issues.apache.org/jira/browse/ARIES-369
> Project: Aries
> Issue Type: New Feature
> Affects Versions: 0.1
> Reporter: Lin Sun
> Assignee: Lin Sun
> Fix For: 0.2
>
>
> When a user uses bundle level blueprint configuration, we can allow people to
> use <tx:transaction value="Required" />, as the direct child of the root
> blueprint element to specify bundle level transaction. for example,
> <blueprint>
> <tx:transaction value="Required" />
> <bean .... >
> </blueprint>
> Also, we want to allow users to use the method attribute:
> <blueprint>
> <tx:transaction method="insert*" value="Required" />
> <bean .... >
> </blueprint>
> Of coursre, bean-level definitions should override bundle-wide definitions.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.