Results 1 to 3 of 3

Thread: TransactionSynchronizationManager

  1. #1
    Join Date
    Aug 2004
    Posts
    15

    Default TransactionSynchronizationManager

    hi,

    i'm using a JtaTransactionManager with Weblogic8.1 and there is an ACTIVE weblogic transaction

    i believed that TransactionSynchronizationManager.isSynchronizatio nActive() would be automatically set to TRUE but when i debugg, i find out that it returns FALSE... wHy ?

    Thanks for any help !

  2. #2
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    TransactionSynchronizationManager.isSynchronizatio nActive() only applies to any Spring managed transaction. It will have nothing to do with a container (JTA) transaction which may be around. If you are getting a false result, then you are not in a Spring managed transaction (that is, you are not handling a transaction via JTATransactionManager, HibernatateTransaxtionManager, etc.).
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

  3. #3
    Join Date
    Aug 2004
    Posts
    15

    Default Hibernate property

    Hi colin,

    Thanks for your answer,

    i read this morning the transaction Chapter in Rod's book and i added the following hibernate property to my Spring context file and it rocks

    <prop key="hibernate.transaction.manager_lookup_class"> net.sf.hibernate.transaction.WeblogicTransactionMa nagerLookup</prop>

Posting Permissions

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