Announcement Announcement Module
Collapse
No announcement yet.
How to disable Transaction management Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to disable Transaction management

    Hi,

    I would like to work with hibernate, how could I configure spring to not handle any transaction consideration. My application is read only database.

    thanks

    Richard

  • #2
    Spring supports setting a readOnly hint in the transaction attribute when setting up declarative transactions. But how this hint is used will depend on the database being used... For ex, sometimes i have noticed log entries saying this readonly is not supported for datasources to an Oracle DB.

    Another option is not to define transactions at all. But then Hibernate may end up using one connection/session for each db call and you may end up getting lazyinitializationexception when you access lazy entity collections.

    Comment

    Working...
    X