Hi,
I have a problem by storing a blob field in the oracle db. It works well on Tomcat but not on Webblogic (classcast exception)
-------------------------------------------
In the applicationContext.xml
<bean class="org.springframework.jdbc.support.lob.Oracle LobHandler" id="lobHandler">
<bean
class="org.springframework.orm.hibernate.LocalSess ionFactoryBean" id="sessionFactory">
<property name="dataSource"> <ref bean="dataSource" />
</property>
<property name="lobHandler"><ref bean="lobHandler" /></property>
....
------------------------
in the hibernate hbm file
<property column="GI_BLOB" name="giBlob" type="org.springframework.orm.hibernate.support.Bl obByteArrayType"/>
in the java class
-------------------
getHibernateTemplate().save(graphicalItem);
thanks for your help
Benoit


Reply With Quote