Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Using Clob in hibernate+oracle10g+spring

843838Sep 25 2006
I hava a problem on ClobStringType.
I set the type of Clob in XXXPO is String.and also is "org.springframework.orm.hibernate.support.ClobStringType" in xxxPO.hbm.xml.In applicationContext.xml ,decalaring it with Bean:

<bean id="nativeJdbcExtractor" class="org.springframework.jdbc.support.nativejdbc.SimpleNativeJdbcExtractor"/>
<bean id="oracleLobHandler" class="org.springframework.jdbc.support.lob.OracleLobHandler">
<property name="nativeJdbcExtractor"><ref local="nativeJdbcExtractor"/></property>
</bean>
In Class LocalSessionFactoryBean,it's "<property name="lobHandler"><ref bean="oracleLobHandler"/></property>"

But the problem has existed,and I got the warning:
java.lang.IllegalStateException: ClobStringType requires active transaction synchronization.

Who can tell me should I how to solve it ,and I leaked which step?
Beg your answer. Please quick,my problem is waitting you,Thanks.

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 23 2006
Added on Sep 25 2006
0 comments
310 views