Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

how to insert clob data using CMP

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,
can any one pls let me know how can we insert data into a CLOB field in Oracle using CMP in Weblogic.
If i get to use BMP I can do it using the PreparedStatement.setCharacterStream(), but in case of CMP how to encode into a reader object.
I tried encoding it using Reader object, but it is storing the object as it is as junk value and not the value, which happens to be a string value.
thanks in advance,
sudeep
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked for WebLogic CMP documentation?
At least the docs for 6.1 have a note about the subject.
 
Sudeep das
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya I have,
sorry forgot to mention that I am using Weblogic 7.0.
I know it is not supported in weblogic 6.1 but not sure about 7.0
sudeep
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Sudeep das:
I know it is not supported in weblogic 6.1 but not sure about 7.0

Actually, the link I provided says that 6.1 does support CLOB fields in CMP by mapping them to java.lang.String.
 
reply
    Bookmark Topic Watch Topic
  • New Topic