Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8633327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:28:32+00:00 2026-06-12T09:28:32+00:00

I know that the default rollback policy within the Transaction Manager is automatic rolling

  • 0

I know that the default rollback policy within the Transaction Manager is automatic rolling back when RuntimeExceptions occur. Though, what happens if I have a checked exception that is allowed to propagate?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:28:33+00:00Added an answer on June 12, 2026 at 9:28 am

    However, please note that the Spring Framework’s transaction
    infrastructure code will, by default, only mark a transaction for
    rollback in the case of runtime, unchecked exceptions; that is, when
    the thrown exception is an instance or subclass of RuntimeException.
    (Errors will also – by default – result in a rollback.) Checked
    exceptions that are thrown from a transactional method will not result
    in the transaction being rolled back.

    Source

    Even if checked exception is thrown, Spring will commit the transaction as if everything is fine.
    If required you can configure a rollback on a checked exceptions.
    Like

    <tx:advice id="txAdvice" transaction-manager="txManager">
      <tx:attributes>
         <tx:method name="get*" read-only="false" rollback-for="AnyCheckedException"/>
         <tx:method name="*"/>
      </tx:attributes>
    </tx:advice>
    

    Will perform a rollback when AnyCheckedException is thrown.

    This might help : Spring transaction management with checked and unchecked exception

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been reading around and know that by default jQuery within a the
I know that variables in F# are immutable by default. But, for example in
I know that component-model indicates whether a property has a default value or not,
I know that user accounts in Windows 7 are limited by default, so a
I know mongrel is the default server for script/server but when I do that
Does anybody know how to disable the default CKEditor behavior that changes the RichCombo
I know that Phonegap has an event for back button, but it's only available
I know that log4j by default outputs to stderror. I have been capturing the
Simple question. I know that in the default MVC application in Visual Studio, you
I need long-term working background agent in wp7. I know that default and maximum

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.