This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes how to insert clob data using CMP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how to insert clob data using CMP" Watch "how to insert clob data using CMP" New topic
Author

how to insert clob data using CMP

Sudeep das
Greenhorn

Joined: Dec 19, 2003
Posts: 13
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
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Have you looked for WebLogic CMP documentation?
At least the docs for 6.1 have a note about the subject.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Sudeep das
Greenhorn

Joined: Dec 19, 2003
Posts: 13
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
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to insert clob data using CMP
 
Similar Threads
Reading data in a CLOB from BIRT report
Converting a String to Clob for insert into DB
Mapping String To CLOB datatype using WSAD 4.0
use of CLOB,help me.
Displaying Clob Data in BIRT report