Hi all,

I have a CMP EntityBean with one CMP field of type byte[]

/**
   * @ejb.persistent-field
   * @ejb.persistence column-name = "binary_file"
   * @ejb.interface-method view-type = "${ejb.interface.type}"
   *
   * @return the binary content of the file
   */
abstract public byte[] getBinaryFile();

/**
 * @ejb.interface-method view-type = "${ejb.interface.type}"
 */
abstract public void setBinaryFile(byte[] value);



In Oracle 9i its mapped as a BLOB type. 

I made few tests to store and retrieve this field. 

It works fine as far as the byte[] length is less than about 2000ko. 

I need to store more large size files (about 600 ko).

I tried to modify the "standardjbosscmp-jdbc.xml" for jboss mapping types. I had this 
entry for Oracle9i

         
            <java-type>byte[]</java-type>
            <jdbc-type>BLOB</jdbc-type>
            <sql-type>BLOB</sql-type>
         


It is still not working.

Thanks in advance,

JC




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3833763#3833763

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3833763


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to