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

  • TransactionManager and hibernate

    Hello,
    I've been investigating using spring declarative transactions with hibernate. Right now we're using the hibernate threadlocal design pattern with an in house filter that handles closing of hibernate session without using spring's transactionManager.
    In some places in our code we explicitly commit to generate a primary key because subsequent processing depends on it.
    So my question is if I implement OpenSessionInViewFilter or the equivalent interceptor and get my hibernate session via the SssionFactoryUtils can I still call session.beginTransaction.commit() in my dao's without any adverse affects, will spring's transaction manager be aware of that call?

    thanks,
    Michael

  • #2
    See http://forum.springframework.org/showthread.php?t=17426.

    Rob
    Last edited by robyn; May 14th, 2006, 09:04 PM.

    Comment

    Working...
    X