jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Mod4j: Modeling for Java using Domain Specific Languages
  • Mod4j: Modeling for Java using Domain Specific Languages
  • MODFORJ-231

Refactor Spring transaction settings

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.3.0
  • Fix Version/s: 2.0
  • Component/s: DSL for Services
  • Labels:
    None
  • Number of attachments :
    0

Description

The Spring transaction attributes are generated for each service method. When we apply a combination of convention and wildcards the transaction config could be a lot more generic and simpeler. Like this:

    <tx:attributes>
        <tx:method name="find*" propagation="SUPPORTS" read-only="true" />
        <tx:method name="retrieve*" propagation="SUPPORTS" read-only="true" />
        <tx:method name="read*" propagation="SUPPORTS" read-only="true" />
        <tx:method name="list*" propagation="SUPPORTS" read-only="true" />
        <tx:method name="count*" propagation="SUPPORTS" read-only="true" />
        <tx:method name="*" propagation="REQUIRED" />
    </tx:attributes>

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity

People

  • Assignee:
    Johan Vogelzang
    Reporter:
    Johan Vogelzang
Vote (0)
Watch (0)

Dates

  • Created:
    22/Jul/11 8:12 AM
    Updated:
    22/Jul/11 8:17 AM
    Resolved:
    22/Jul/11 8:17 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.