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

  • 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
    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.).

    Comment


    • #3
      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>

      Comment

      Working...
      X