aspose file tools*
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 Spring in Action this week in the Spring 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