0 Replies Latest reply on Apr 8, 2004 7:32 AM by yura22

    create CMP with large amount of data (file content)

    yura22 Newbie

      When I trying create a CMP bean that have a field with big amount of data
      JBoss throw OutOfMemoryError.
      My application has a possibility to upload files. When file size less 1Mb uploaded all is fine. But when you try upload bigger file then OutOfMemoryError thrown.
      I am using JBoss 3.2.3 and Postgres 7.4

      public abstract class DocBean implements EntityBean {
       public java.lang.Integer ejbCreate(Doc doc) throws javax.ejb.CreateException {
       try {
       // ...
       // ...
       } catch (Exception e) {
       return null;
       public abstract byte[] getContent();
       public abstract void setContent(byte[] value);