• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue Inserting Blob to Oracle thru Hibernate

 
Chinmay Bajikar
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We are trying to insert a new row to a table which has a Blob col.
The model object has a java.sql.Blob field which we are populating using,

<i>
object.setBlob(Hibernate.createBlob(object.getFile().getInputStream()));
</i>

& finally we call a
<i> getHibernateTemplate().saveOrUpdate(object); </i>

on that object.

This was working fine for some time now.
But we are seeing some user loads for this particular module, & some weird behavior.
The insert takes a long time to happen.
Many times the appserver times out.

Sometimes after the timeout we see duplicate entries in the db.

I have read in some forums that this might have something to do with Oracle drivers.We are using 10G.

Has anybody else faced this?
Please let me know.

Thanks,
-Chinmay
 
Chinmay Bajikar
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does Anybody have any comments on this one?
Please let me know.

Thanks,
-Chinmay
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic