EJB programming & troubleshooting: What java type should an Oracle BLOB be in Weblogic 6.1

  1. Hi,

    I can't figure out what java type to assign to a BLOB in Weblogic 6.1 entity beans.

    From the weblogic documentation (http://edocs.bea.com/wls/docs61/ejb/cmp.html#1061636), it's pretty clear that a CLOB needs to be java.util.String. (I've tried this and it works no problem). It is not so clear what a BLOB should be?
    java.util.String? byte[]? weblogic.jdbc.common.OracleBlob?

    Yes I have set the dbms_column-type to OracleBlob in the weblogic-cmp-rdbms-jar.xml file, but I'm still not sure what the corresponding java type should be.

    Currently no matter what I try, I end up getting the following exception: "java.io.StreamCorruptedException: InputStream does not contain a serialized object".

    Any ideas? Has anybody actually used this?


  2. it would be better if you use "Bytes".