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 {
// ...
setContent(doc.getContent());
// ...
} catch (Exception e) {
//...
}
return null;
}
public abstract byte[] getContent();
public abstract void setContent(byte[] value);
}