Spring and Hibernate suddenly set the transaction to readonly

后端 未结 7 1201
春和景丽
春和景丽 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:01

    aseesing, i check your configuration. in spring context part, you use

    
       
    

    usually, only some accesses are read-only types, such as get/find/query, etc. i suggest use

    
    
    

    another thing is, do you use opensessioninview pattern? flush mode could be set in opensessioninview properly. you can use filter in web.xml or use spring interceptor in application context config.

提交回复
热议问题