Announcement Announcement Module
Collapse
No announcement yet.
no rollback Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Well.. my problem is not resolved. It's a strange problem, and I am not able to figure out the cause of the problem.

    In my log4j.properties file, when I set

    lo4j.logger.org.hibernate=INFO

    the rollback doesnt work. But when I set

    log4j.logger.org.hibernate-DEBUG

    then the rollback works fine. I know it sounds crazy, but this is what I am seeing on my setup.

    The application works fine and rollback and transactions happen as expected when the log level is set to DEBUG, but when the log level is set to INFO, it doesn't work.

    This leads me to think that there is some kind of bug in hibernate code and setting of rolback flag is somehow made dependent on the log level. I am not sure, but I am still digging into this. If someone has seen this behavior before, I would be thankful, if they can provide some insight into this.

    Thanks.

    Comment

    Working...
    X