Spring and Hibernate suddenly set the transaction to readonly

后端 未结 7 1181
春和景丽
春和景丽 2021-01-04 08:20

We have an application running on JBoss 4.2.3, using Spring 2.5.2 and Hibernate 3.2.6.ga. This is running on Linux JEE01 2.6.16.60-0.54.5-smp, using its own user. Writing to

7条回答
  •  悲&欢浪女
    2021-01-04 09:04

    I encountered this when 2 "baseTransactionProxy" were used from 1 bean :

    First :

    
        
            
        
    
    

    Second :

    
        
            
                
            
        
    
    

    and we did

    class ruleDao{
        generalDao.generalSaveOrUpdateAll(hbms); // OK HERE
        saveOrUpdateAll(otherHbms); //Exception here
    }
    

    Not sure if it helps, but it seems that its not good to mix 2 different "baseTransactionProxy" at the same proxy call...

提交回复
热议问题