Results 1 to 2 of 2

Thread: TransactionManager and hibernate

  1. #1

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Last edited by robyn; May 14th, 2006 at 09:04 PM.
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

Similar Threads

  1. Spring + Hibernate ORA-00936: missing expression
    By Hugh_la_Main in forum Data
    Replies: 1
    Last Post: Jun 28th, 2005, 08:48 AM
  2. Replies: 0
    Last Post: Jun 6th, 2005, 06:22 AM
  3. Replies: 0
    Last Post: Jan 14th, 2005, 10:32 AM
  4. Replies: 1
    Last Post: Sep 16th, 2004, 11:04 PM
  5. Replies: 1
    Last Post: Sep 15th, 2004, 03:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •