Hi, I've had that same problem with a database with around 100
tables. There are two different things I've tried, that at least got the
process a bit further (before I switched to JBoss - no problems of
course..!):

1. Allocate more memory to ant:

set ANT_OPTS=-mx640m

2. Try splitting the build in several tasks (call tasks one by one, you
might have to add the ejbdoclet.skip property in build.xml):

ant middlegen
ant -Dmiddlegen.skip=true ejbdoclet
ant -Dmiddlegen.skip=true -Dejbdoclet.skip=true ear

Seems to me this is really a problem with ejbc not handling large number
of beans. You might want to check with bea about it. Let us know if you
figure out.

.eivind

On Wed, 11 Jun 2003, qiang wrote:

> Hi guys,
>   I'm trying to use middlegen to generate my ejb jar.My database is 
> sqlserver,Application 
>   server is weblogic7. Database has 42 tables. It's all right for generating entity 
> bean, 
>   generating interface, generating ejb jar.But at last when running weblogic.ejbc ,
>   It runs for some time and then throws a java.lang.OutOfMemoryError. 
>   My computer's CPU is  Pentium IV 2.4G,Memmery is 256M.I increase the JVM heap, 
>   and it just takes longer.Show same error.
> 
> 
> ----------------------------------------------
> ӵ�����������Լ��飬���뿡����Ů�ļ��齻����԰ 
> http://y.21cn.com 
> ȫ�����������а� 
> http://sms.21cn.com/ring 
> �������䣬���š���Ϸ��������Ӱ����� 
> http://mail.21cn.com/huodong/0304/wlxs 
> ���뱣���������������ȫ 
> http://mail.21cn.com/bijiao/15.html 
> 
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
> thread debugger on the planet. Designed with thread debugging features
> you've never dreamed of, try TotalView 6 free at www.etnus.com.
> _______________________________________________
> middlegen-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
> 



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Reply via email to