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 6807475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:50:13+00:00 2026-05-26T19:50:13+00:00

I am debugging our webapp. It is configured to create a DataSourceTransactionManager bean and

  • 0

I am debugging our webapp. It is configured to create a DataSourceTransactionManager bean and also a HibernateTransactionManager bean on startup. This is not intentional but is caused by a 3rd party dependency. The effect appears to be benign. What I’m seeing via debugging is that when we persist an object via a Hibernate based DAO – the DataSourceTransactionManager is invoked and not the HibernateTransactionManager (the beans both are called ‘transactionManager’). The Spring Javadoc implies (I think, re-reading it now) this is fine for local resources – which is our situation. I.e. its not a distributed JTA based environment.

My question is – is there any negative impact of not using the HibernateTransactionManager for ORM based persistence. I can change the config to make the HibernateTransactionManager be used via a qualifier on the @Transactional annotation on our DAOs.

Things are working fine in simple unit test, integration test setup but I am more concerned about scaling to full production volumes when we’ll have thousands of users and a high level of concurrency.

TIA,
hope this isn’t too obscure.

Spring 3.0.x BTW.

This is in the Spring 3.1 docs.

Sec 11.9 "Solutions to Common Problems".

Use the correct PlatformTransactionManager implementation based on
your choice of transactional technologies and requirements.

  • 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-05-26T19:50:14+00:00Added an answer on May 26, 2026 at 7:50 pm

    This would strike me as wrong and will cause problems. Without the hibernate txn manager all calls made to HibernateOperations will be outside a transaction and on a separate session, possibly using auto-commit. So it might appear that everything is fine when an error occurs you may find changes you would expect to be rolled-back aren’t.

    Try the following to check

    • begin tran
    • save something
    • throw exception
    • commit

    Check whether the ‘something’ appears in the DB or not.

    Another check would be

    • begin tran
    • load something
    • access a relation to another object from something and access a property (not the pk) of this related object

    You might find the last call causes an exception as the session was not kept open from the load because the enclosing txn is not managed by the hibernate txn manager.

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

Sidebar

Related Questions

I'm starting this new project and we are thrashing out our logging/debugging approach and
Every once in a while, typically when I stop debugging in our UI assembly,
In addition to informing the user, we want to collect information for our debugging
While debugging an issue with our system, I have discovered a thread contention that
Debugging experience http://www.dmhermitage.org/wtfborders.png This is making me want to kill myself. I have some
So our new webapp project is based on maven. I'm really liking the dependency
Here is the scenario, a user opens up non-secure page from our WebApp, let's
I am debugging an old process dump from one of our servers. It was
I just finished debugging a problem, where our program crashed on a production server,
This may be a simple question but I will throw it out anyway. My

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.