1
I made an application using the standard JSF-JPA archetype for list and edit screens, extending from AbstractListPageBean
and AbstractEditPageBean
respectively, using the Bookmark pages as reference.
I saw that the "New" and "Delete" button has the actionListener
pointing to the method clear()
. On the editing screens a AbstractEditPageBean
has the same method but is not called.
The clear()
should be called always when leaving the screen, to avoid accumulation of objects in memory?
Thanks Emerson, I get the use. I am having memory problems on a production server with only one application (Jboss AS 7.1 + jsf+jpa Demoiselle 2.4.2 application) and I am investigating the possible causes.
– Fernando Camillo
It is important to "profile" the application. Check the JVM and Server settings (run.conf). Some settings make quite a difference. In a large majority of cases, both the servers and the JVM run with the "factory" settings and this is not ideal. There is this blog that brings a good initial vision: http://blog.caelum.com.br/beginning/
– Saito