Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Use of Clob in WL 5.1

Reply
Thread Tools

Use of Clob in WL 5.1

 
 
Francisco Tazón Vega
Guest
Posts: n/a
 
      01-07-2005
Is it possible to use a CLOB on a Weblogic 5.1? If so, how can I do it? I'm
using WL 5.1 with Oracle 8.1.7 and when I try to read a clob field from
database using rs.getClob(1) or rs.getObject(1) I get a message like
"..oracle.sql.CLOB is not Seriarizable...."

Thanks in advance.

Fran


 
Reply With Quote
 
 
 
 
Sudsy
Guest
Posts: n/a
 
      01-07-2005
Francisco Tazón Vega wrote:
> Is it possible to use a CLOB on a Weblogic 5.1? If so, how can I do it? I'm
> using WL 5.1 with Oracle 8.1.7 and when I try to read a clob field from
> database using rs.getClob(1) or rs.getObject(1) I get a message like
> "..oracle.sql.CLOB is not Seriarizable...."


Unfortunately you have to use the Oracle classes. While you can find
much more on the Oracle Technology Network (<http://otn.oracle.com>)
you might also find an article I wrote useful:
<http://www.sudsy.net/technology/clobs.html>
 
Reply With Quote
 
 
 
 
anonymous
Guest
Posts: n/a
 
      01-08-2005
Francisco Tazón Vega wrote:
> Is it possible to use a CLOB on a Weblogic 5.1? If so, how can I do it? I'm
> using WL 5.1 with Oracle 8.1.7 and when I try to read a clob field from
> database using rs.getClob(1) or rs.getObject(1) I get a message like
> "..oracle.sql.CLOB is not Seriarizable...."
>
> Thanks in advance.
>
> Fran
>
>

I think you have to include Oracle's classes12.zip. I have code like this:

import oracle.jdbc.OracleTypes;

// offersList is a CallableStatement
offersList.registerOutParameter(1, OracleTypes.CLOB);


Clob clob = offersList.getClob(1);

// result is a String
result = clob.getSubString(1, (int)clob.length());

I use this to retrieve xml that can be more than 32Kb
 
Reply With Quote
 
Francisco Tazón Vega
Guest
Posts: n/a
 
      01-08-2005
Thanks for the information

"Francisco Tazón Vega" <> escribió en el mensaje
news:crmm1j$l98$...
> Is it possible to use a CLOB on a Weblogic 5.1? If so, how can I do it?
> I'm
> using WL 5.1 with Oracle 8.1.7 and when I try to read a clob field from
> database using rs.getClob(1) or rs.getObject(1) I get a message like
> "..oracle.sql.CLOB is not Seriarizable...."
>
> Thanks in advance.
>
> Fran
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ejb2.0 Entity beans clob Oskar Java 1 05-16-2006 04:22 PM
Want to send CLOB/CLOB to Oracle AQ from Java brian.vanheesch@gmail.com Java 0 02-15-2006 09:22 AM
Oracle CLOB column =?Utf-8?B?RGlmZmlkZW50?= ASP .Net 0 06-07-2005 02:42 PM
Does Timesten support CLOB and BLOB?? Sri Computer Support 0 05-24-2005 10:45 AM
Sending database Clob data via RMI nsb Java 1 10-05-2003 09:11 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57