Re: Problem with Tomee on ejbPostCreate method - OutOfMemoryError

2015-10-29 Thread tgp
Hi again, Yesterday I tried to create the simple Maven application without success (the application is too big), so, at this point, I think all I can do is to show you this I’ve found debugging... I think the most probable cause is some bad configuration I’ve done. The problem occurs in org.apach

Re: Problem with Tomee on ejbPostCreate method - OutOfMemoryError

2015-10-29 Thread Romain Manni-Bucau
what is the size of the collection you try to retrieve? Romain Manni-Bucau @rmannibucau | Blog | Github | LinkedIn | Tomitriber

Re: Problem with Tomee on ejbPostCreate method - OutOfMemoryError

2015-10-29 Thread tgp
>From the SQL Developer, after doing the same query that is shown in the log, about ~720.000 rows. In the older application (done in Weblogic 8.1) doing this in the ejbPostCreate didn't charge the rows, but in OpenEJB, from what I've seen, it tries to charge them even they are LAZY. My toughts ar

Re: Problem with Tomee on ejbPostCreate method - OutOfMemoryError

2015-10-29 Thread tgp
Hi again, I've more or less found a solution to the problem, which has been just removing the inverse one-to-many relation from the Article entity in the orm.xml. --- -

Re: Problem with Tomee on ejbPostCreate method - OutOfMemoryError

2015-10-29 Thread hwaastad
Hi, usually, when there is a one to very many relation its a good thing to use uni directional relations. Else, you most certainly will face OOM one day :-) br hw -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Problem-with-Tomee-on-ejbPostCreate-method-OutOfMemoryE

Re: Problem with Tomee on ejbPostCreate method - OutOfMemoryError

2015-10-29 Thread tgp
Thanks for your comment, after that I've come to read about it in the Java Persistence Wikibook I've found the cause of the problem. https://en.wikibooks.org/wiki/Java_Persistence/OneToMany#Getters_and_Setters Last two paragraphs: / Some expect the JPA provider to have magic that automatically m

Re: Problem with Tomee on ejbPostCreate method - OutOfMemoryError

2015-10-29 Thread Howard W. Smith, Jr.
Interesting thread (discussion, findings, etc...). Thanks to all.